After Job Sub rouitne

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
dspxguy
Participant
Posts: 156
Joined: Thu May 24, 2007 4:09 pm
Location: Simi Valley, CA

After Job Sub rouitne

Post by dspxguy »

I have a job in the sequence which uses a after job sub routine to kick of a shell script which does an insertion in a table used by another job.

How can I get the status of the script using a routine activity stage (whether it ran successfully or not?)

Thanks in advance.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

The after job subroutine does not have a separate status, it's return status sets that of the job. If you need to use the return value of the script from the after job subroutine you could look into setting the user status.
dspxguy
Participant
Posts: 156
Joined: Thu May 24, 2007 4:09 pm
Location: Simi Valley, CA

Post by dspxguy »

Thanks for the reply Andrw

Can you please elaborate more on setting the user status..

Cheers
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

The BASIC Programmer's Guide documents the syntax for the DSSetUserStatus() function call, and you can query the value with the DSGetJobInfo() function.
Post Reply