Page 1 of 1

Calling "Not Compiled" jobs in Job Control

Posted: Wed Mar 31, 2010 5:29 am
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

Posted: Wed Mar 31, 2010 5:44 am
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.

Posted: Wed Mar 31, 2010 5:57 am
by mdbatra
That was so stupid of mine. Sorry !

Posted: Wed Mar 31, 2010 6:44 am
by mdbatra
Thanks ArndW :wink: