DSJ.JobStatus

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
dsguy
Participant
Posts: 34
Joined: Thu Mar 09, 2006 10:37 am

DSJ.JobStatus

Post by dsguy »

I have a Before/After Subrotuine which gathers info of a job like jobname,starttime,endtime,linkname,stagename,status etc.. and writes it to a flatfile.

The problem is with the DSJ.JobStatus. No matter the job finishes sucessfully/finish with warnings/aborts it writes '0' (I guess this means "DSJS.Running") to the flat file.

Does the job considers still running as it is running the after-job subrotuine?

I don't know where it went wrong?

Thanks in advance.
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Yes, the job is still running.
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
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

It's still running until it stops running. After job, you need to check the INTERIM status to get what you are looking for.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ds_developer
Premium Member
Premium Member
Posts: 224
Joined: Tue Sep 24, 2002 7:32 am
Location: Denver, CO USA

Post by ds_developer »

Specifically, you should use:

job_status = DSGetJobInfo(DSJ.ME, DSJ.JOBINTERIMSTATUS)


John
dsguy
Participant
Posts: 34
Joined: Thu Mar 09, 2006 10:37 am

Post by dsguy »

ds_developer wrote:Specifically, you should use:

job_status = DSGetJobInfo(DSJ.ME, DSJ.JOBINTERIMSTATUS)


John

That Works....
Thank you very much........
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Time to mark this thread as Resolved, then.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply