How to know if job run from cammand prompt whether it was sc

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
ravindrag
Participant
Posts: 40
Joined: Wed Dec 14, 2005 3:22 am

How to know if job run from cammand prompt whether it was sc

Post by ravindrag »

Hi All

I'm calling a DataStage job from a command prompt, or a scripting language, as below:

dsjob -server 10.242.243.15 -user 192297075 -password ****** -run DEV_ZGP0GSAS sample

How will the calling program know whether it was a success or failure? Will this call return any value to the calling program

Thanks indvance
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

add in a -jobstatus before the -run.
This will return the jobstatus you see in the director.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Add the -wait option to force the dsjob program to wait for the job to finish, or, go into a loop periodically checking the status yourself until you see that the job has finished.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Post Reply