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
maximum number of subfiles that can defined in a rpg program for one display file is?
what do we can do with the embedded sql statements?
what is the use of unique keyword and what level it is defined?
what does vldcmdkey means?
when are the referential constraints executed?
how do you specify the number of records to roll in a subfile ?
What Is The Difference Between Goto & Exsr?
define a shared access path?
distinguish between terminating a program through seton lr and return?
which single rpg opcode performs both setll and reade?
when are the unique constraints executed?
what is a program described file in rpg?
what are the different methods to access seu?
What is dynslt?
how many printer files maximum can be used in single rpg program?