Is there a way to check for an empty file in JCL other than
using IEBCOMPR and the command PRINT COUNT(1)?
Answer Posted / arul anand.a
//STEP01 EXEC PGM=IDCAMS
//SYSUDUMP DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//INDD DD DSN=FILE1,
// DISP=SHR
//OUTDD DD DSN=FILE2,
// DISP=SHR,
REPRO INFILE(INDD) OUTFILE(OUTDD) COUNT(1)
THIS WILL GIVE RC = 04 IF THE INFILE IS EMPTY.
OTHERWISE IT WILL GIVE 0.
| Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?
In sms datasets, what is the function of the dd mgmtclas keyword?
What is the format of comment statement?
What do you understand by the terms: joblib and steplib?
Where can program checkpoints be stored for use in a restart?
when can a job time-out occur? How to overcome that?
Is their any limit for data sets?
What statement can be used to send data to another mvs jes3 node?
How does the jcl specify the job to os?
What is the significance of addrspc parameter in exec statement?
What is job control language?
Explain in DD statement what is the use of DCB parameter?
what operation is performed by job statement?
Explain how can the disposition of sysout datasets be set for an entire jobstream?
How can values be passed from the job stream to an executable program?