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 jcl is used for testing batch programs?
Explain the jcl exec statement?
What are the 4 fields in dd statement?
how do you code a null statement?
How to pass the parameter in parm using linkage section ? (syntax)?
What is the use of symbol // in jcl?
What is jcl in mainframe?
Matching Logic in Jcl not in cobol.Could any one please answer this question
Describe the various parameters utilized in the creation of a gdg?
what operation is performed by job statement?
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?
What do you understand by the term notcat 2 – gs?
How can the attributes of one sms dataset be copied to another dataset?
which utility is used a dummy utility?
what is use of dcb parameter in dd statement?