Informatica 平面文件源名称
我正在开发一个项目,我们需要加载平面文件,例如:(Gemstone_20220325.csv) 我在脚本中将源名称指定为 (Gemstone_*.csv) 以在路径中搜索文件。
但它失败并出现错误,没有这样的文件。
这是我所缺少的吗?对此的任何想法都非常感激。
I am working on a project were we need to load flat file eg : (Gemstone_20220325.csv) I have given the source name as (Gemstone_*.csv) in script to search for the file in the path.
But it is failing with error , No such file .
Is that anything I am missing . Any idea on this is much appreciated .
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要输入确切的名称或使用带有文件名的文件列表,然后在读取文件的会话中使用间接文件类型。
您可以使用会话前 shell 命令,例如
ls -1 Gemstone_*.csv>/infa/home/tmp/Gemstone_filelist.txt
。或者您也可以使用此命令创建 shell 脚本以更好地控制。在读取此文件的会话中,将属性设置为间接文件类型,并将
/infa/home/tmp/Gemstone_filelist.txt
作为要提取的文件。Infa 会一一挑选文件并进行处理。
文件处理完毕后,使用会话后命令任务
rm -f Gemstone_* 将其删除。
。You need to put either exact name or use a file list with the name of the file and then use indirect file type in the session that is reading the file.
You can use a pre session shell command like this
ls -1 Gemstone_*.csv>/infa/home/tmp/Gemstone_filelist.txt
. Or you can create a shell script too with this command for better control.in the session that is reading this file, set the property to indirect file type and mention
/infa/home/tmp/Gemstone_filelist.txt
as file to be extracted.Infa will pick files one by one and process them.
Once the file gets processed, delete it using a post session command task
rm -f Gemstone_*.
.