Answer Posted / lavanya
hi,
we can code cond parameter on both job and exec
stmts.very step has to be executed a return code upon
completion.that is known as condition code.condition is
used to control the execution of the subsequent
steps.always the condition parameter based on the previous
step.suppose the given cond is true,the step is not
executed,otherwise it will bypassed to its next step.
FOR EX:-
JOB CARD
//STEP1 EXEC PGM=ABC
//STEP2 EXEC PGM=XYZ,COND=(4,LT,STEP1)
HERE THE CONDITION IS TRUE,
so,step will not executed.
Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?
What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?
How to pass data to a program that is coded in an exec statement?
Are there any set of rules for the names of the steps used in a job?
Explain how can a stopped job be started again?
Why block size is multiple of lrecl in jcl?
1) SORT FIELDS=(20,4,CH,D,10,3,CH,D) OUTREC FIELDS=(7:20,4,C' FUTURE ',20,2,10,3,1Z,1,9,13,7, 24,57,TRAN=LTOU,6X'FF') This example illustrates how a fixed-length input data set can be sorted and reformatted for output. The SORTIN LRECL is 80 bytes. The reformatted output records are fixed length with a record size of 103 bytes. SOLRF (the IBM-supplied default) is in effect, so unless the SORTOUT LRECL is specified or available, it will automatically be set to the reformatted record length of 103. in the above example i have some doubts that a) sort fields=(20,4,CH,D,10,3,CH,D) -what exactly it does and this fields related to output record fields or input record fields b)outrec used to refprmat the records after sorting that means could please reply me as soon as possible Thanks. Venkat
Is there any command to check wether the ps file is in sorted order?
A dd statement consists of 4 fields. Name them?
what are the types of abends that occur on job failure? And explain the possible causes of these
How to read and write a single record into a file. I would like to use it to enter a single 8-character piece of information and use it to put it into a variable for processing in JCL. Thank you
Explain how can return codes be tested before execution of a job step?
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) ?
How can a fb file convert to vb file using sort program?
Explain how can an in-stream dataset be terminated?