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
why is the declare cursor statement is used for?
which are the figurative constants used in rpg?
Difference Between Skip Before & Space Before?
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?
how many printer files maximum can be used in single rpg program?
when should I use method get, and when should I use method post in my cgis?
what is xfoot opcode ?
What Is The Purpose Of The "n" In The Following Calculation Specification?
how can database records be read without lock ?
how can you detect and handle a record lock situation?
what is *iso date format?
when are the unique constraints executed?
Can any one explain the basic things about RLU and Printer Files and their Definitions for both and why are they used,i'm a newbee so please help me out
how to write code for singlepage in sqlrpgle with update ?
how do handle file exception/error?