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 ? | 23 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 |
Does the terms, JOBLOG, SPOOL and SYSOUT indicate the same thing, i.e., where JCL and JES messages and statements are written ?
what happens in conversion stage in job processing?
suppose i have 10 job steps and i want to execute only step 6.How to write?
I am having one step in my jcl.in that step,i am calling one proc.In that proc,i have 10 steps.i want to call a particular step in that proc without writing any new jcl ike iebedit utility...
what is the difference between the JCLLIB and JOBLIB ,and where do we use it ?
how to modify the copy book?explain with examples
I have GDG defined e.g. GDG.smaplegdg.base, after processing the GDG. it contains some records and which is input to the second step2. How can I use GDG to use it as input file at step2.
01 A. 10 B pic X(10). move spaces to A. move spaces to B. output in A & B
Suppose we have 5 steps in a job.No step should be executed After submitting every step in a job
WORKING-STORAGE SECTION. 1 GROUP-ITEM. 05 AMOUNT-1 PIC 99V9 USAGE COMP VALUE 50. 05 AMOUNT-2 PIC 9(4)V99 USAGE COMP. PROCEDURE DIVISION. MOVE ZERO TO GROUP-ITEM. ADD 50 TO AMOUNT-1. DISPLAY AMOUNT-1. STOP RUN.
which utility is used to run a cobol-db2 program?
How do you find which GDG is using which dataset?