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


Please Help Members By Posting Answers For Below Questions

What is the function of //cntl statement?

830


What is Cataloged Procedures?

713


What parameter directs the output of the job log dataset?

765


What is catelog procedure and how many catelog procedure to use in one job?

7456


Explain how can return codes be tested before execution of a job step?

832






How can an in-stream dataset be terminated?

848


What are s0c1, s0c4, s0c5, s0c7 and socb?

705


what is “Cond= even” and “Cond=only”?

742


how would you create a temporary dataset? And where will you use them?

768


how can the same proc be re-used and called by many jobs?

909


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

763


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.

1986


What is the significance of addrspc parameter in exec statement?

731


How to submit a jcl from cics?

666


Is acct parameter mandatory?

762