How do you handle empty files in a JCL ?

Answer Posted / guest

Yes, we can handle empty file in JCL, there is utility
provided by IBM "UT939" ,eg //STEP1 EXEC PGM=UT939,
IF step1 return code is 4 then there is empty file and else
if return code is 0 (for non-empty file). We can handle
this with COND parameters whether to execute next step or
not if file is empty.
SUPPOSE WE DON'T WANT TO EXECUTE THEN
eg //STEP2 EXEC PGM=XXX,
COND=(4,EQ,STEP1)

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how you will the direct the data to spool using sysout option?

1769


what is JCL?

700


What parameters can be used to limit the number of records written to a sysout dataset?

756


What is the maximum length of a single line of jcl?

834


What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?

9222






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

879


Is it possible to code instream data in a PROC?

756


What is the function of //cntl statement?

834


Brief description of inline procedure of jcl.

687


How jcl work to handle various input output file operations?

660


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

904


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

1954


When space is allocated for an output dataset, what units can be used?

757


how to do automated restart when a job abends?

854


How to alter the parameters for the existing gdg?

716