Answer Posted / steve holton
For an unconditional skip step, just remove it completely
from the job stream.
Otherwise, for conditional removal, you can use the COND=
stuff, which I consider to have "reverse logic" also, as
noted by one responder above. I think "reverse" because if
is notmal to think "If the RC is GT 8, SKIP, but the RC and
the "constant" (8, in this case) are backwards, so you have
to say "IF 8 LE RC, then skip to accomplish the same thing.
OR (and I prefer) JCL IF...ELSE ..ENDIF statements, which
uses more straightforward logic, analogous to the
IF/THEN/ELSE logic in programming languages (i.e. IF RC=0
THEN execute to the ELSE or ENDIF, else SKIP TO ELSE or ENDIF.
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
How jcl work to handle various input output file operations?
What is the function of the dd avgrec keyword in sms datasets?
Name a few IBM utility programs, and explain its function.
Explain how can an in-stream dataset be terminated?
how can you check if a file is empty using jcl?
I have many files which i am receiving from client everyday. I have one step for every file to check for empty or not. Here client gives 30 files i need to check for every file for empty or not and i need to perform 30 steps. Can I do it in single step. Dynamically i need to change the File name in my step.
What do you understand by the term notcat 2 – gs?
WORKING-STORAGE SECTION. 01 GROSS-PAY. 05 BASIC-PAY PIC 9(5). 05 ALLOWENCES PIC 9(3). PROCEDURE DIVISION. MOVE 1000 TO BASIC-PAY. MOVE 250 TO ALLOWENCES. DISPLAY GROSS-PAY. STOP RUN. 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 123.45 after the statement MOVE W-A TO W-B what will be W-B's value? a.123.75 b.b23.75 (where b indicates space) c.023.75 d.invalid move
Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed
How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?
Is condition checking possible in jcl? If yes, how?
What is the function of dd disp parameter?
Matching Logic in Jcl not in cobol.Could any one please answer this question
Is it possible to left uncode disp? If yes, how?
what are the various stages of job processing?