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 |
Is it possible to code instream data in a PROC?
can we maintain 2 generations with different Lengths in Same GDG ?
What is one line to pass PARM from JCL to COBOL?
What is the difference between specifying DISP=OLD and DISP=SHR for a dataset?
what happens if job falls in loop ? how to resolve it ?
what are the statements that are not valid to be included in an include statement?
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.
Explain the purpose of dd * statement in jcl?
When will we need to specify Space parameter ?
if we compile the cobol+ db2 program now ofter 5 years we need to compile again?
What is GDG and what is the maximum limit of versions that can be created?
What is S322 abend ?