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 / amit
I think after SBMJOB of the first PGM you need to retrieve
jobd of it. When the Job is completed then SBMJOB next job.
If you submit jobs together they all are processing
simultaneously which is violation of requirements.
Your second question is not clear to me. But if it is in
continuation of the first question then yes, it is possible
to have more than two programs executed in batch mode and
you will have to continue doing RTVJOBD for submitted job
prior to submitting next job. The loop can be like-
SBMJOB (JOB1)
TAG1 : RTVJOBD (JOB1)
I am not sure which parameter is to be used but there is
one parameter that pertains to job status and If status is
complete GOTO TAG2 else got to TAG1 will give you the loop
required to implement our requirement.
TAG2 : SBMJOB (JOB2).....
you can add one as many jobs as required this way.
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
what is a program described file in rpg?
describe the difference between the dowxx and douxx operations?
What Is The Difference Between Goto & Exsr?
distinguish between terminating a program through seton lr and return?
how can you detect overflow for a print program that prints multiple lines per cycle?
What is array in as400? What are the types of array?
how to run other job when one job is active?
How can we update a specific field in RPG?
define the purpose of the *cat function?
what is message file?
hi guys i am new for sqlrpgle, please suggest me good websites and theory and coding. plz plz its very urgent.
can anybody give the interview questions list of RLU. plz mail me: dinesh_sati07@yahoo.com
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
which type of object is used in db2/400?
If i change any file through application after entering data , how to check which file is updated through applications . For call stack we takes esc 3 then we chose 11..But What is answer of below qtn..?