Suppose i have 2 steps in my pgm. Step1- creates a file,
Step2 - generates report from file in step1, What changes
have to be made in Step2, so that if the file in Step1 is
empty Step2 should not be executed? No changes to be made to
Step1.
Answer Posted / sreedhar naidu dhekodna
In the above Question there are no details about how the
file is getting created say, whether they are creating a
file using a program which may or may not populate data
into the file or using some IBM utilities for the sake of
only creation of file.
Consider the first Case: If file is getting created in a
step where the program may or maynot populate the file,
Then we can use IDCAMS or INSYNC or FILEAID or some
other utilities to check the emptiness of a file.
If it is the other case: Using file creation utilities only
for the sake of creation then only we can use cond
parameter.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Explain the purpose of dd dummy statement?
What is the use of disp parameter?
What is the use of symbol // in jcl?
a dd statement has 2 types of parameters. Name them?
Define concatenating?
what JCL Procedures?
Explain in DD statement what is the use of DCB parameter?
How does the jcl specify the job to os?
What happens if both JOBLIB & STEPLIB is specified ?
Explain dd statement in jcl?
For what purpose steplib and joblib are used ?
which parameter is use to declare the name of dataset in dd statement?
How can the disposition of sysout datasets be set for an entire jobstream?
My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.
How to submit jcl through a cobol program?