In JCL I have 5 steps,I need to execute 1st,2nd and 5th steps
only,can any one answer me please?

Answer Posted / muthu

Hi All,

For this question we have to consider the following
scenario.

Step 1 - it has to be executed at any cost
Step 2 - it has to be executed at any cost
Step 3 - it should not be executed if the 1st and 2nd steps
executed successfully.
Step 4 - it should not be executed if the 1st and 2nd steps
executed successfully.
Step 5 - it has to be executed at any cost

Step 1 - No need to code any cond codes
Step 2 - COND = (0, NE) (This execs if step1s rc is 0)
Step 3 - COND = (0, EQ) (This step get skip if step 2's rc
is 0)
Step 4 - COND = (0, EQ,step2) (This step get skip if step
2's rc is 0)
Step 5 - COND = (0, NE,step2) (This step execs if step2's
rc is 0).

This is my assumption correct me if am wrong.

Is This Answer Correct ?    22 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

which parameter is use to declare the name of dataset in dd statement?

728


in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?

2050


How can the attributes of one sms dataset be copied to another dataset?

846


Differentiate between the joblib and the steplib statements?

855


If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?

779






how to compare two datasets without using superce because output is limited to 133 bytes

1477


In sms datasets, what is the function of the dd mgmtclas keyword?

857


what is the purpose of coding class parameter in job statement?

715


Is there any command to check wether the ps file is in sorted order?

2428


what is a jcl?

685


What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?

673


State the uses of syspring, sysin, sort fields, sum fields and dummy.

644


Explain how can a stopped job be started again?

636


Is acct parameter mandatory?

758


What happens if both JOBLIB & STEPLIB is specified ?

606