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 a program described file in rpg?
different type of cursor?
how can I give more performance to some selected pages?
why is the declare cursor statement is used for?
what is the purpose of data structure?
what is the purpose of indicators in rpg?
what is logical file?
how to develop some simple graphs (bar charts) using just html?
how do u compile rpgle program?
what is elastic and non elastic subrile?
when are the referential constraints executed?
What is %CHECK?
name few ibm supplied libraries?
what is the necessary keyword for non-join logical file?
explain the purpose of keep and assume keywords?