Informatica 平面文件源名称

发布于 2025-01-17 06:35:56 字数 151 浏览 1 评论 0原文

我正在开发一个项目,我们需要加载平面文件,例如:(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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不语却知心 2025-01-24 06:35:56

您需要输入确切的名称或使用带有文件名的文件列表,然后在读取文件的会话中使用间接文件类型。

  1. 您可以使用会话前 shell 命令,例如 ls -1 Gemstone_*.csv>/infa/home/tmp/Gemstone_filelist.txt。或者您也可以使用此命令创建 shell 脚本以更好地控制。

  2. 在读取此文件的会话中,将属性设置为间接文件类型,并将 /infa/home/tmp/Gemstone_filelist.txt 作为要提取的文件。
    Infa 会一一挑选文件并进行处理。

  3. 文件处理完毕后,使用会话后命令任务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.

  1. 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.

  2. 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.

  3. Once the file gets processed, delete it using a post session command task rm -f Gemstone_*..

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文