Explain COND used in JCL?



Explain COND used in JCL?..

Answer / koti156

the cond parameter is used to control the execution of subsequent job steps,depending on the condition code that is returned for a prior step.
ex:
suppose a job has two steps.the first step backups file,and the second step deletes the source file after a successful backup. obviously if the file is not successfully backup it should not be deleted.the cond can be used to control the the execution of the second step depend on th e value returned by the first.

Is This Answer Correct ?    8 Yes 0 No

Post New Answer

More JCL Interview Questions

Is it possible to code instream data in a PROC?

0 Answers  


can we maintain 2 generations with different Lengths in Same GDG ?

3 Answers   RBS,


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

0 Answers  


What is the difference between specifying DISP=OLD and DISP=SHR for a dataset?

5 Answers   CitiGroup,


what happens if job falls in loop ? how to resolve it ?

3 Answers   Patni,






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

0 Answers   IBM,


Please go thru the below points and let me know how to code this. 1. Sort the input dataset for the condition : Starting position is 37,length of the field is 13 based on character and in the ascending order , starting from position 25 length of 12 ,character and in the ascending order. Use a temporary dataset to hold the sorted file. 2. Use the temporary file created in the above step as the input for the next step. The next step is to execute a program and produce an output file. Use the temporary file created in the above as work file 1 and the output of the file to be created in this step work file 2.Also, pass a parameter to the program that is to be executed in this step. The parameter should have the current date in YYYYMMDD format. For the sake of convenience, you can use the below Job Name : Sample1 Input DSN : PCABDT11.CABD.TEST.INPUT Temporary DSN : Sort1 Output DSN : PCABDT11.CABD.TEST.OUTPUT Program Name : SAMPLE Thanks in Advance for your response.

2 Answers  


Explain the purpose of dd * statement in jcl?

0 Answers  


When will we need to specify Space parameter ?

3 Answers   Wipro,


if we compile the cobol+ db2 program now ofter 5 years we need to compile again?

1 Answers   TCS,


What is GDG and what is the maximum limit of versions that can be created?

9 Answers   Convergys,


What is S322 abend ?

5 Answers  


Categories