Is there a way to check for an empty file in JCL other than
using IEBCOMPR and the command PRINT COUNT(1)?
Answer Posted / arun
Use the SORT utility with NULLOUT=RC04 OR RC16..If the file
is empty the step returns either 04 or 16 depending on what
you coded.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
what is DD statement is used in JCL?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
Explain the purpose of dd dummy statement?
in a jcl, a large volume dataset is loaded to a table using bmcload in step1 and an image copy of the loaded table is taken using bmccopy in step2. Step2 abends because the image copy dataset cannot hold the volume of the table. How can this be rectified?
Explain how can a jobs execution priority be modified?
what is the difference between JES3 and JES2?
How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY
I need exexution process for JCL programs
How to run cobol program using jcl?
How do you create a temporary dataset?
What are the rules employed while naming the steps in a job?
what EXEC statement is and what is the syntax of EXEC statement used in JCL?
Is it possible to left uncode disp? If yes, how?
how would you create a temporary dataset? And where will you use them?
What are the parameter we cannot use in procedure?