What is the meaning of the EXEC statement keyword, COND?
What is its syntax?

Answers were Sorted based on User's Feedback



What is the meaning of the EXEC statement keyword, COND? What is its syntax?..

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

What is the meaning of the EXEC statement keyword, COND? What is its syntax?..

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

Post New Answer

More JCL Interview Questions

I have one GDG. Everyday One new version is being created.Now I want to split this created version in different files each having 1000 records. Here Problem is I don't know How many records will be there in new version of GDG? that's why I don't know How many Out files we need to use . Interesting??????????????

4 Answers   CTS,


I have an job having three job steps.Suppose i want to call a pgm in step2 and aproc in step3.How to write the code?

2 Answers   IBM,


What are the parameter we cannot use in procedure?

0 Answers  


How do you designate a comment in JCL?

1 Answers  


by using cond parameter maximum 8 cond can be coded in single cond means ?explain

0 Answers  






How different is the JCL executing a COBOL program? 1) if the program is using VB file as input. 2) if the program is using FB file as input.

1 Answers   HSBC,


Hi, My dataset have multiple records, say 100. I want to start copy records only after a record contain a specific value that may be in a specific position. Secondly I want to stop copying rest records if certain record contains a specific value. Can it be done using SORT/ICETOOL utilities?

5 Answers   Patni,


What is jcl in mainframe, and how many types of jcl statements are there for a job?

0 Answers  


If a JOBSTEP abends, AND without using COND also, all the subsequent steps execute, then what is the use of using EVEN ? Why do we use EVEN when without it also all the JOBSTEPs execute ?

2 Answers   IBM,


There are two input sorting files and there is a need to create one sort out file which contains data of both input files. What is the sort card for this. Write a sample JCL for this using a control card?

3 Answers  


What is the function of the steplib dd statement?

0 Answers  


I have two files each contains 10 records. I would like to copy both files into one output file but in alternate sequence. for e.g. first record from file1 then record 2 from file2.....

3 Answers   RBS,


Categories