How do You skip a Step In JCL?

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


Please Help Members By Posting Answers For Below Questions

What is the difference between the positional and keyword parameters? Give examples.

716


List the different components of jcl statement?

697


Explain the function of a dd statement?

661


i want to store 20 digits . how will u do it in cobol ?

862


can any one plzzzzzz tell the jcl code for creating ps using idcams

10524






what are the statements that are not valid to be included in an include statement?

778


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) ?

1773


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?

2223


What is one line to pass PARM from JCL to COBOL?

859


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

862


Where can program checkpoints be stored for use in a restart?

851


How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?

673


Explain the function of the dd dcb keyword?

706


Does jcl support automatic restart?

763


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?

1809