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
Name what parameter directs the output of the job log dataset?
Is automatic restart possible in jcl? If yes, how?
Must tape dataset definitions include vol=ser specifications?
What is the function of the dd dcb keyword?
What do you understand by the term notcat 2 – gs?
What are some jcl statements that are not allowed in procedures?
What is multithreading in jcl?
What parameter of the job statement is used to limit the cpu time consumed by the job?
Can we call instream to catalog and catalog to instream?
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
Is it possible to left uncode disp? If yes, how?
How is a type of file defined in the jcl that executes the cobol program?
what is “Cond= even” and “Cond=only”?
What is the function of a dd statement?
Name the parameters which can be used to limit the number of records written to a sysout dataset?