If there are five steps in a JCL i have to execute the 3rd
step, bypass the 4th step and execute the 5th step how do i
do this?
Answer Posted / sreelatha
//jobname positional parms,keyword parms,.... Restart=step3
//..
//..
//..
//step3 exec=xxxx
//...
//step4 exec=yyyy,cond=(0,Le,step3)
//..
//step5 exec=zzzz
Restart =step 3 executes step3.Step 3 gives some return
code.In step 4,the test is passed as 0 is less than step
3.So step 4 is bypassed and is not executed. and the
program is responsible for issuing the return code that
was not even loaded in the main storage.
The result: no return code can exist
In the steps that follow any test of COND parameter tat
attempts to interrogate this non-existent return
code will be ignored . Step 5 will be e executed.
Is This Answer Correct ? | 33 Yes | 2 No |
Post New Answer View All Answers
What is the function of //cntl statement?
What is Cataloged Procedures?
What parameter directs the output of the job log dataset?
What is catelog procedure and how many catelog procedure to use in one job?
Explain how can return codes be tested before execution of a job step?
How can an in-stream dataset be terminated?
What are s0c1, s0c4, s0c5, s0c7 and socb?
what is “Cond= even” and “Cond=only”?
how would you create a temporary dataset? And where will you use them?
how can the same proc be re-used and called by many jobs?
Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC
My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.
What is the significance of addrspc parameter in exec statement?
How to submit a jcl from cics?
Is acct parameter mandatory?