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
Explain about LMQUERY�give a dialog information about a data set
What is job control language?
How do you create a temporary dataset?
How can the submitting users racf authority be overridden in a job stream?
Explain the function of //jcllib statement?
List the different components of jcl statement?
What does a disposition of (MOD,DELETE,DELETE) mean ?
What is the purpose of dd * statement in jcl?
Where can program checkpoints be stored for use in a restart?
Is it possible to code instream data in a PROC?
How jcl is used for testing batch programs?
How is a type of file defined in the jcl that executes the cobol program?
What is concatenating?
how to compare two datasets without using superce because output is limited to 133 bytes
which parameter is used to check the syntax of a jcl without executing it?