Is there a way to check for an empty file in JCL other than
using IEBCOMPR and the command PRINT COUNT(1)?
Answer Posted / saikat
By using a simple selcopy we can determine whether the file
is empty or not. IF file is empty then we can set the
return code of the step in the selcopy code.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
write a jcl to execute a job by 7:00 am on jan 20,1986?
What is timing concept in mainframe?
In sms datasets, what is the function of the dd avgrec keyword?
what are the types of abends that occur on job failure? And explain the possible causes of these
When space is allocated for an output dataset, what units can be used?
what are JCLLIB and STEPLIB in JCL?
What are the difference between jcl and jes?
What is the function of a dd statement?
What is use of restart and how to use it?
what is DSN parameter and DISP parameter is used for?
What are the parameters that are used in creating a gdg?
what is the purpose of coding notify parameter in job statement?
How to override loadlib?
List in order the hierarchical levels of jcl?
How to run cobol program using jcl?