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
Can an individual step be restricted from using all the jobs allowed cpu time?
Explain dd statement in jcl?
Is condition checking possible in jcl?
What is the purpose of disp parameter?
What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?
what is DSN in JCL and what are the parameters to declare the DSN?
What are s0c1, s0c4, s0c5, s0c7 and socb?
How gdg are concatenated?
How does jcl specify the job to the operating system?
How to alter the parameters for the existing gdg?
Suppose I have five jobs to do. But I want to hold one?
Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC
What does a disposition of (new,catlg,keep) for a dsn mean?
How can a stopped job be started again?
What is the purpose of dd * statement in jcl?