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


Please Help Members By Posting Answers For Below Questions

What do you know about jcl?

654


in a jcl, a large volume dataset is loaded to a table using bmcload in step1 and an image copy of the loaded table is taken using bmccopy in step2. Step2 abends because the image copy dataset cannot hold the volume of the table. How can this be rectified?

824


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

926


Why block size is multiple of lrecl in jcl?

917


why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.

1954






Explain how can values be passed from the job stream to an executable program?

634


How do you create a temporary dataset?

668


How to pass data to a program that is coded in an exec statement?

841


what is use of dsn parameter in dd statement?

675


What is the function of a dd statement?

709


Name the statement which can be used to send data to another mvs jes3 node?

611


What happens if both JOBLIB & STEPLIB is specified ?

619


Explain dfsort utility?

679


How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY

865


What is the syntax of JCL statement?

702