Is there a way to interrogate the Job Status of a QS job like there is in DS with the DSGetJobInfo Function?
I need to write a shell script which would run a bunch of QS jobs and return a zero or non-zero exit code based on the status of each job.
Thanks!
QS Job Status
QS Job Status
Vince Lee
ETL Developer
Zions Bank
ETL Developer
Zions Bank
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
I'm not aware of any. Of course, if you invoke QS via the QS stage from DataStage, then DataStage can report the status of the stage. But I don't believe there's an API for interrogating QS jobs directly. If you run QS jobs via the command line interface you could get the exit status of the executable.
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.
Re: QS Job Status
I'm not sure, but I think the UNIX system variable $? retains the execution return code when the job terminates, but you must execute and wait for termination in the shell script .
If "$? -ne 0" is true then you have a problem.
I don't know any function in QS like the one in DS.
Another option is grep for "Error" or "Fail" in the Log dir
Alex
If "$? -ne 0" is true then you have a problem.
I don't know any function in QS like the one in DS.
Another option is grep for "Error" or "Fail" in the Log dir
Alex