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 would be the effect on the field where reverse image, underline and highlight display attributes are active ?
What is %CHECK?
can we define multi-dimensional arrays in rpg ?
explain the purpose of keep and assume keywords?
how can u check no of records in a file?
what is procedure prototype and procedure interface.
Write a logic program for knowing the repeated number of a vowels in a given program?
what are different record spacing keywords in rlu ?
what does opcode post do ?
The content of Physical file is as below: hfcftp wruquief SENDPASV 0 CDUP ASCII GET 01100901.CSV ramndk/ECP505.EC0110090 (REPLACE QUIT Thw above commands will get executed when we call STRTCPFTP from CL program.... Now if I want to use SFTP what can be the solution? plz reply in detail....Thank you for ny help... I m using RPG/ILERPG to download...
define the purpose of the *cat function?
the output from my cgi is correctly interpreted by ms internet explorer, whereas netscape navigator would display it as a plain text. What should I do to have also netscape interpreting the html output from my cgi?
Space & Skip Are Which Level Keywords?
how many printer files maximum can be used in single rpg program?
what is the difference between normal upddta to pf and updating using dfu program?