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
How Many Specs Are There In Rpg & Which Are They?
which indicator is used for read?
which type of object is used in db2/400?
what is arrival sequence?
when do you use f-spec. Continuation line ?
in conjunction with which statements can orxx and andxx conditions be used ?
define what a data queue is along with a brief example of what it may be used for?
How to avoid using indicators in ile ?
how do you specify the number of records to roll in a subfile ?
Pose, there are 100 records in the file.i need to retrieve all the records matching/equal to the particular name field. How can we do the above using search criteria other than using the if cond?
what is the maximum number of record formats in dspf?
what is full form for dds?
what are the important factors in error message subfile ?
what is the maximum number of subfiles that can specified in a display file ?
is it possible, in the same cgi, to run more than one gethtml or gethtmlifs?