Page 1 of 1

Getting JobStatus in After-Job Subroutine

Posted: Tue Feb 14, 2012 6:39 am
by DSUser2000
How may I obtain the JobStatus from an After-Job Subroutine in DS 7.5 on Unix? I mean getting the "Finished", "Finished(with warnings)", "Aborted" (or something similar in numerical form).
I tried to get it via
DSGetJobInfo(DSJ.ME, DSJ.JOBSTATUS)
but apparently, this always gives 0 as the job hasn't finished yet...is there any possibility or is it just not possible?

Posted: Tue Feb 14, 2012 6:46 am
by pandeesh
you need JOBINTERIMSTATUS
Check this out: viewtopic.php?t=144286

Posted: Tue Feb 14, 2012 8:02 am
by DSUser2000
Thanks a lot that works so far but it seems like I can't distinguish between a validation run and a normal run with that (never get DSJS.VALOK). Is there a way for doing that?

Posted: Tue Feb 14, 2012 8:07 am
by pandeesh
Can you explain a little bit?

Posted: Tue Feb 14, 2012 8:29 am
by chulett
The question is quite clear, however I for one don't have an answer. If you've found that checking the interim status doesn't differentiate between those two end states, I'm not sure how else you would go about it. Not saying it can't be done, just that off the top of my head I don't know how. Never mind the fact that I stopped doing validation runs years ago when you no longer had to do them to create hashed files. :wink:

Posted: Tue Feb 14, 2012 9:27 am
by DSUser2000
Yes, chulett understood that absolutely correct. Basically, I don't want my subroutine to run when you just click on "validate" instead of "run" for the job.

Posted: Tue Feb 14, 2012 10:13 am
by chulett
So, out of curiousity, do you actually do validation runs or is this mostly just an academic question?

Posted: Tue Feb 14, 2012 11:35 am
by DSUser2000
Yes we really do job validation, especially after each automatic deployment but also manually.