Page 1 of 1

DSJ.JobStatus

Posted: Wed Jan 23, 2008 11:25 am
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.

Posted: Wed Jan 23, 2008 11:40 am
by kcbland
Yes, the job is still running.

Posted: Wed Jan 23, 2008 12:00 pm
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.

Posted: Wed Jan 23, 2008 12:24 pm
by ds_developer
Specifically, you should use:

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


John

Posted: Thu Jan 24, 2008 9:44 am
by dsguy
ds_developer wrote:Specifically, you should use:

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


John

That Works....
Thank you very much........

Posted: Thu Jan 24, 2008 5:22 pm
by ray.wurlod
Time to mark this thread as Resolved, then.