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
What is the difference between the positional and keyword parameters? Give examples.
List the different components of jcl statement?
Explain the function of a dd statement?
i want to store 20 digits . how will u do it in cobol ?
can any one plzzzzzz tell the jcl code for creating ps using idcams
what are the statements that are not valid to be included in an include statement?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?
What is one line to pass PARM from JCL to COBOL?
How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY
Where can program checkpoints be stored for use in a restart?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
Explain the function of the dd dcb keyword?
Does jcl support automatic restart?
What is the job entry system used in your project? based on what criteria the sequence of jobs are picked if priority is not mentioned in the job card?