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
how would you design the process for a nightly, high volume check producing process that needs to select only records that are flagged to be processed?
what is the version of os/400 that we have?
some special characters I key in my html source members show different on my web pages. Why? How can I solve this?
how many printer files can be defined in f specs ?
during input operation which indicator position is seton if there is a record lock?
what is rpg fixed logic cycle?
what is the use of unique keyword and what level it is defined?
what opcode could be used to test an alphanumeric field for all numeric values?
what are the important factors in error message subfile ?
when would you prefer logical file than opnqryf?
hi guys i am new for sqlrpgle, please suggest me good websites and theory and coding. plz plz its very urgent.
an access path may be in which sequence?
using dfu, user will be able to ___________ from physical file?
How to reverse a string using RPG?
How can we arrange duplicate records in a file?