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
Is their any limit for data sets?
What is jcl in mainframe?
how do you code a null statement?
What is the maximum length of a single line of jcl?
How dummy is used in jcl?
How does jcl act on code(if you take a cobol program)?
I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one
what is use of dcb parameter in dd statement?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
what is the resolution for sb37 error
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
how you can direct the data to spool using SYSOUT option?
In sms datasets, what is the function of the dd avgrec keyword?
1) SORT FIELDS=(20,4,CH,D,10,3,CH,D) OUTREC FIELDS=(7:20,4,C' FUTURE ',20,2,10,3,1Z,1,9,13,7, 24,57,TRAN=LTOU,6X'FF') This example illustrates how a fixed-length input data set can be sorted and reformatted for output. The SORTIN LRECL is 80 bytes. The reformatted output records are fixed length with a record size of 103 bytes. SOLRF (the IBM-supplied default) is in effect, so unless the SORTOUT LRECL is specified or available, it will automatically be set to the reformatted record length of 103. in the above example i have some doubts that a) sort fields=(20,4,CH,D,10,3,CH,D) -what exactly it does and this fields related to output record fields or input record fields b)outrec used to refprmat the records after sorting that means could please reply me as soon as possible Thanks. Venkat
what is “Cond= even” and “Cond=only”?