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 / yogesh
PGM MYCLPGM
/*The CL variable must be a five-position decimal variable
with no decimal positions. */
DCL &STSVAR *DEC 5
SBMJOB CMD(CALL JOB1)
TAGJOB1: RTVJOBA RTNCDE(&STSVAR)
IF COND(&STSVAR *NE 0) THEN(GOTO CMDLBL(TAGJOB1))
SBMJOB CMD(CALL JOB2)
TAGJOB2: RTVJOBA RTNCDE(&STSVAR)
IF COND(&STSVAR *NE 0) THEN(GOTO CMDLBL(TAGJOB2))
ENDPGM
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
what is the purpose of indicators in rpg?
what are different types of substems?
using dfu, user will be able to ___________ from physical file?
which are the figurative constants used in rpg?
what is the difference between *like and *namvar ?
what are the various types of device files?
which are the relational operators in rpg?
What Is The Purpose Of The "n" In The Following Calculation Specification?
what does check opcode is used?
which indicator is used for read?
how can we run a batch job?
can you specify a display file to be used in the following modes input,output, or combined modes ?
define subsystem?
if dspatr(pc) and csrloc were specified for a format, which keyword would have priority?
what is the maximum number of subroutines allowed in rpg?