In JCL I have 5 steps,I need to execute 1st,2nd and 5th steps
only,can any one answer me please?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / mahesh
//mat021ex job notify=&sysuid,class=a,msgclass=a,
cond=(step2,00,eq)
//step1 exec
//step2 exec condition satisfied remaining steps areskipped
//step3 exec
//step4 exec
//step5 exec cond=even
Is This Answer Correct ? | 3 Yes | 2 No |
What is the difference between Sysin,Sysout,Sysdbout and Sysudump?
Are there any set of rules for the names of the steps used in a job? What are they?
How to send different PARM values based on the any condition to the program in a JCL? For example :- If the time is before 12:00 pm, I want to send "A" to some program and if it past 12:00 pm , I want to send "B" as a PARM value to that program. How to do it thur JCL only?
Statement1 "We can not use UNCATLG in SMS managed VSAM datasets" Statement2 "We can not delete a SMS managed data set without UNCATLG it" (P-353, Saba Zameer book) Then how do we delete SMS managed VSAM datasets ?
What are the difference between jcl and jes?
what if any ,is the syntax error in the following piece of code 01 B PIC A(7) 02 C PIC 9(4) ........ IF(B NUMERIC) ADD 10 TO C a.the condition in the if statement is wrong b.noting is wrong c.because C is initialised.ADD 10 TO C is wrong d.both B and C shoud have same size.
I have a File that has duplicate records. I need only those records that occur more than thrice.
can anyone explain me about sort in jcl with inrec and outrec ?
What is meant by S0C7 system abend code?
In SPACE,what is directory,RLSE
//{name} INCLUDE MEMBER=memname {comments} in the include statement, what actually happens when its executed? The membername conatains a list of valid JCL statements, so will the include statement be substituted by these statements and how can we mention the pds that conatains the member? How does the include group differ from a PROC? how is include statement connected to JOBLIB and STEPLIB?
i have 10,000 records in one input file.i want to sort 1 to 5000 records in one outputfile and remaining records sort in another output file write the syntax for this?