Hi Gurus,
I have a Shell Script (For moving files from One directory to another directory) which i want to call from DataStage routine by passing the Parameteres (As Src Directory and Tgt Directory) to the script.
Anyone tell me, Can DataStage Executes Unix Shell Script from Routine.
Thanks in Advance
Calling Script from DS Routine
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Yes.
The first two arguments are input, the final two are output. Output is any output from the script, ExitStatus is the exit status of the script.
Code: Select all
Call DSExecute("UNIX", path_of_script, Output, ExitStatus)
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.