Q.How can more than two program be executed in batch mode
through SBMJOB in CL PGM but the condition is that program
must be executed one by one?Please wtite the senario?
2. IS it possibe more then two programs can be executed in
batch mode and HOw it will be executed in CL
program ,please write the senario?
Answer Posted / sathya
This is can be acheived by using an API QUSRJOBI. it takes
five mandatory parameters. The status of the job will be
returned to variable &JOBENDR.
CALL PGM(QUSRJOBI) PARM(&JOBINFO &JOBINFL +
&JOBFMT1 &QJOBNAME &QINTJOB)
CHGVAR VAR(&JOBENDR) VALUE(%SST(&JOBINFO 348 1))
==
If the value returned is ''-->then its still running
If the value returned is '0'-->it has completed sucessfully
and then we can submit the next job
If the value returned is '1'-->It has ended in error.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
what is the purpose of the indara keyword?
how can you detect overflow for a print program that prints multiple lines per cycle?
what is *inzsr used for?
what are the three line types in rlu ?
What is file access opcodes?
what is a logical file?
what is term cua , saa?
what are various techniques to pass parameters from one program to another?
what are the different commands used in rlu ?
the maximum number of subfiles that can be active for a single file is ____ .
how do you specify page overflow indicator for printer files in rpg?
what are the different methods to access seu?
how can you detect and handle a record lock situation?
How can we change the uppercase to Lowercase in RPG?
What is the difference between non-join logical files and join logical files?