hi i'm a newbie in datastage and my english is not very good but i try to explain
i have a file that could be on diferent directories when the job run i need to find first in which directory the file exist i try to use "find" comand but how can i catch the given output of the command, to utilize the path
how to catch the path of a file
Moderators: chulett, rschirm, roy
-
ray.wurlod
- Participant
- Posts: 54595
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Welcome aboard.
Use a job sequence. Have an Execute Command activity execute the find command. Its output is available through an activity variable that can be interrogated in downstream activities.
Don't forget to code for the possibility that the file is not found at all.
Use a job sequence. Have an Execute Command activity execute the find command. Its output is available through an activity variable that can be interrogated in downstream activities.
Don't forget to code for the possibility that the file is not found at all.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.