Hi Guys,
I'm wondering that whether there is such stage in DataStage 7.5.x could perform external scripts, shell scripts in Unix I mean, or not.
I wanna perform a shell script before a job running, and also perform 2 shell scripts after a job running successfully or unsuccessfully respectively.
If there is no such stage for using, whether the only way to perform this logic is detecting the return status after starting job by dsjob command within shell script first and then performing different operation according to the return status gotten previously.
How DataStage Perform Interaction with External Scripts
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 57
- Joined: Tue Jun 30, 2009 9:38 am
-
- Participant
- Posts: 22
- Joined: Thu Sep 11, 2008 11:47 pm
- Location: Bangalore
All kinds of ways. As noted, both the Before and After Job areas support ExecSH as an action. There is the Execute Command stage in Sequence jobs. There is a DSExecute() function that can be used in BASIC routines or in hand-rolled job control code.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers