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
What is the purpose of the dd keylen parameter?
What is the purpose of dd?
what are the various stages of job processing?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
if the submitter of a job wants to inform another user about the job completion, how can it be done?
How can the submitting users racf authority be overridden in a job stream?
if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?
Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?
what is “Cond= even” and “Cond=only”?
i want to store 20 digits . how will u do it in cobol ?
Suppose I have five jobs to do. But I want to hold one?
Is it possible to code instream data in a PROC?
Explain about ISPF/TSO Commands
Which dd parameters are required?