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
how you will the direct the data to spool using sysout option?
what is JCL?
What parameters can be used to limit the number of records written to a sysout dataset?
What is the maximum length of a single line of jcl?
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 ?
How can values be passed from the job stream to an executable program?
Is it possible to code instream data in a PROC?
What is the function of //cntl statement?
Brief description of inline procedure of jcl.
How jcl work to handle various input output file operations?
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
why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.
When space is allocated for an output dataset, what units can be used?
how to do automated restart when a job abends?
How to alter the parameters for the existing gdg?