What is the meaning of the EXEC statement keyword, COND?
What is its syntax?
Answers were Sorted based on User's Feedback
Answer / guest
COND specifies the conditions for executing the subsequent
job step. The value after the COND= is compared to the
return codes of the preceding steps and if the comparison is
true, the step is bypassed. (If this answer confuses you,
welcome to the club - memorize it and don't ask questions!)
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / suresh babu
EXEC operation is meant for executing a program or
procedure. Each EXEC is known as one step. Maximum EXEC
steps in a JCL can be: 255.
The COND parameter coded on the EXEC statement applies only
to the job step that it is coded in. The job step is
executed or bypassed, depending on the condition codes
issued by one or more prior job steps.
SYNTAX: COND=(comparison-code,condition,stepname)
| Is This Answer Correct ? | 0 Yes | 0 No |
There are 2PROCS in a JCL. I want following conditions to be carried out 1) 1st PROC should be executed as such In second PROC 2) First 4steps should not be executed 3) 5th step should not be executed 4) 6th and 7th step should be executed The change should be done only in the JCL and PROC should be untouched ?
Hi, Say I have 10 flat files and I want to copy all these 10 flat files to a GDG versions flat files (I have GDG base: FDWS01.TEST.RESTORE) in one shot. Can we do that in one shot using a JCL. May be by using IEBGENER. It's a bit urgent. So anyone's fast rely would be appreciated.. Thanks in advance.. 10 flat files ----------------------------------- FDWS01.SUB.RESTORE1 FDWS01.SUB.RESTORE2 FDWS01.SUB.RESTORE3 ; ; FDWS01.SUB.RESTORE10 TO GDG versions ----------------------- FDWS01.TEST.RESTORE.G0001V00 FDWS01.TEST.RESTORE.G0002V00 FDWS01.TEST.RESTORE.G0003V00 ; ; FDWS01.TEST.RESTORE.G0010V00
i have 10,000 records in one input file.i want to sort 1 to 5000 records in one outputfile and remaining records sort in another output file write the syntax for this?
how to write a jcl prog to copy alternate recs from ps1 to another ps2,suppose ps1 having 10 recs?
a jcl has 2 steps. How to code the jcl such that if step1 abends, then step2 runs. Else, job terminates with step1?
How many days does a job remain in spool
A statement about PROCs is " In PROCs, Symbolic Parameters can be assigned on PROC and EXEC", BUT On which EXEC, (i) On the JCL's EXEC which is calling to PROC1. (Inside JCL, EXEC PROC1) (ii) or On the PROC's EXEC where it calls the PGM1. (Inside PROC, EXEC PGM=PGM1)
When a dataset is UNCATALOGED in a JOBSTEP, how to get its UNIT and VOL in JCL to refer in subsequent steps ?
Why we us SYSTSIN DD with IKJEFT01 (TSO Utility) to execute a COBOL DB2 program? Why can't we use SYSIN DD?
Hi Guyz, My requirement is to empty out a PS file but not to delete. How would I do that. Is there any Utility. If any other way, plz answer. Thanks.
9 Answers iGate, Lehman Brothers,
i want to see the jobs in skeleton queue in diff region. (eg. 7 regions are running means , i want to see all the jobs in 7 regions which are in skel queue using 1 command)
how many max steps can we use in a job? pls answer to my question