Hi,
Please clear me
when COND=ONLY and COND=EVEN. Explain me with example.
Answers were Sorted based on User's Feedback
Answer / balasukumar
COND=ONLY IF YOU MENTIONED THIS OPTION IN A STEP,THAT
PARTICULAR STEP WILL EXECUTE ONLY THE PRIOR STEP IS ABENDED.
COND=EVEN MEANS IF THE PREVIOUS STEP EXECUTED SUCESSFULLY
OR NOT THAT PARTICULAR STEP IS EXECUTED SUCESSFULLY.
| Is This Answer Correct ? | 13 Yes | 1 No |
COND=ONLY
if you mentioned this option in a step, that particular step will execute ONLY when there is an ABEND.
COND=EVEN
this particular step will execute either ABEND or not.
| Is This Answer Correct ? | 8 Yes | 4 No |
I had 100 steps in jcl i want to execute first 10 steps only?
can we write a proc with in a proc
Current version of GDG is ID.GDG.FILE.G0001V00. JCL has procedure with 2 steps like below, What will be the output file name in each step ? PROC starts Step 1 has ID.GDG.FILE(+1) Step2 has ID.GDG.FILE(+4) PEND Similarly, JCL has 2 steps in 2 separate procedure. What will be the output file names here ? PROC starts Step 1 has ID.GDG.FILE(+1) PEND PROC1 starts Step2 has ID.GDG.FILE(+4) PEND
how can u identify the db2 from jcl ?
what is the sortcard for comparing two files with a field key and get the duplicates in onefile and noduplicates in another file
How to find out the number of records in a file using JCL
What is JCL LIB ?
If a field is declared as a comp-3 field and if we want to sort a dataset based on this field, then how will the sort card be??? e.g- if we want to sort by a field which is defined as a PIC X(5) then we will mention - sort fields=(1,5,ch,a). Likewise if a field is defined as PIC S9(10)COMP-3 then in this case how will the sort field be defined (because in this case a sign is also involved)???
What is Automatic Restart ? EXEC PGM = PROG1, RD = R (Is it the Restart of a JOBSTEP or Restarting the execution of the program?) Do we Restart it or it automatically Restarts executing again and again ? Then when it will finish executing ? or After Abending, when we submit it again, then it is Restarted from the Last successful Checkpoint ? If some JOBSTEP is abending, what is the benifit to Restart it, WILL IT NOT ABEND AGAIN if you don't change the LOGIC ?
Hi Please try to be to-the-point. 1) How to INCLUDE a JCL segment in a JOB ? (A Small example) 2) What is SPOOL and what is SPOOL FULL ? and how to direct the output of a Jobstep to SPOOL ?
What is the function of //cntl statement?
I have a sequential file in which there are 50 records. Now I want to copy all the 50 records in the reverse order into a new file? The last record in the original file should be the first record in the new file. How can I do it?