I tried to end a batch job in CLLE by retreiving the job attributes through RTVJOBA and ENDJOB,but it doesn't work.Can anyone tell me what is the other procedure?
Software/Hardware used:
ASKED:
September 3, 2008 6:10 AM
UPDATED:
September 16, 2008 2:04 AM
but my cl pgm is in a different job and the batch job is different,so RTVJOBA will not work as it gives the attributes of the current job only.So,if i want to end the batch job in a cl pgm what procedure should i follow?
The only way you can end one job from another is if you know the full qualified name of the job you want to end: 999999/user/jobname. The only way to get that information is to either find it and enter it yourself or output WRKACTJOB to a spooled file and then parse the spooled file which only works if the actual (non-qualified) jobname is unique in the system.
You may also find this answer useful:
http://itknowledgeexchange.techtarget.com/itanswers/how-to-get-job-attributes-for-a-different-job-that-was-submitted-and-is-running-on-the-system?asrc=EM_UGT_4441661&uid=5731771