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 |
Hi, all suppose i have 5 steps (S1,S2,S3,S4,S5) what will happen if cond is true or false (which of the other steps get executed)? 1) //s3 exec pgm=abc,cond=(0,le) 2) //s3 exec pgm=abc,cond=(0,le,step2) 3) In the jobcord RESTART=step3,cond=(0,le) 4) can i code COND=TRUE in jobcard, if yes what will happen?
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) ?
Name what parameter directs the output of the job log dataset?
in jcl you are having JCLLIB and STEPLIB what happens
how can i code cond parameter in procedures ? i have a jclk calling a proc which has 10 steps i want to execute from step 5 to step 10 where can i code restrat parameter or cond parameter for ths
A maximum of 100 chars can be passed to Cobol through Parm in JCL, If we want to pass more than 100 Chars how we can do it ?
Explain about Internal Sort
In my job I have 6 steps. Step01,02,03...step06. after executing step02 i want to skip step03 and want to execute step04. and once step04 is done then I want to go back and execute step03. once step03 is completed I want execute step05, 06 and so on... can any one tell me how do i do that???
what is mainframe?
How to execute 2nd and 4th steps among 5 steps in jcl proc?
How can a fb file convert to vb file using sort program?
What is a Proc ? why do we go for a Proc ? What are the types of procs?Can we have nesting in Procs ?