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

Explain about LMFREE�free data set from its association with data ID

1016


How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.

5072


How to pass data to a program that is coded in an exec statement?

846


Why include statement is used in a jcl?

696


What are steplib and joblib? What for they are used?

702






Matching Logic in Jcl not in cobol.Could any one please answer this question

3686


How is the record format of an output dataset specified?

754


what are JCLLIB and STEPLIB in JCL?

694


Does jcl support automatic restart?

773


how do you code a null statement?

791


Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?

679


For what purpose steplib and joblib are used ?

696


What is the significance of addrspc parameter in exec statement?

739


what is the compile process of cobol program expalin with code

2011


Where & How Do You Code Identifier In Jcl?

710