Calling "Not Compiled" jobs in Job Control

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
mdbatra
Premium Member
Premium Member
Posts: 175
Joined: Wed Oct 22, 2008 10:01 am
Location: City of London

Calling "Not Compiled" jobs in Job Control

Post by mdbatra »

Hi ,

i am writing a job control which would fetch all the job names in the project from a file( derived from Universe) and obtain all the stage names.
Then, job name and the all the corresponding stage names are to be written to a file in below manner:

Job_Name | Stage_Names( "," delimited; as received from DSJ.STAGELIST )

But, the job control is failing due to encounter of few jobs which are in "Not Compiled" state, with the below error in director:
FIND_OBJECT_UTILITY..JobControl (fatal error from DSAttachJob): Job control fatal error (-12)
(DSOpenJob) Cannot open job SapLend010XtractAccountClosure. - not a runnable job
i guess DSAttachJob is failing at this point.

Any way for :

1. Attaching to
Not Compiled
jobs
or 2. Ignoring these jobs

or do i have to filter them out prior to feed the entire job list in job control.

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

Post by ArndW »

Look at your options for DSAttachJob(), you can choose DSJ.ERRNONE to avoid an error message and can check yourself to see if the call was successful.
mdbatra
Premium Member
Premium Member
Posts: 175
Joined: Wed Oct 22, 2008 10:01 am
Location: City of London

Post by mdbatra »

That was so stupid of mine. Sorry !
Rgds,
MB
mdbatra
Premium Member
Premium Member
Posts: 175
Joined: Wed Oct 22, 2008 10:01 am
Location: City of London

Post by mdbatra »

Thanks ArndW :wink:
Rgds,
MB
Post Reply