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 ? | 6 Yes | 1 No |
Post New Answer View All Answers
How do you submit a job for execution?
why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.
What is the purpose of disp parameter?
Is automatic restart possible in jcl?
What parameter directs the output of the job log dataset?
How to pass data to a program that is coded in an exec statement?
Matching Logic in Jcl not in cobol.Could any one please answer this question
what happens in conversion stage in job processing?
which utility is used to sort a file in jcl?
Explain the function of the steplib dd statement?
How to do automated restart when a job abend?
What do you know about jcl?
How is a type of file defined in the jcl that executes the cobol program?
what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?
Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE