How to identify in JCL that an input file is empty without
reading it?
Answer Posted / jeeva225
//job331ab job notify=&sysuid
//step1 exec pgm=idcams
//sysprint dd sysout=*
//input dd dsn=job331ab.prasad.infile,disp=shr
//sysin dd*
print infile(input)count(1)
/*
if return code rc=00 then it is not empty file,
return code rc=04 then it is empty
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the significance of addrspc parameter in the exec statement?
Is their any limit for data sets?
Explain how can a jobs execution priority be modified?
List in order the hierarchical levels of jcl?
What is Cataloged Procedures?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
How can the submitting users racf authority be overridden in a job stream?
what happens in execution stage in job processing?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
What happens if both JOBLIB & STEPLIB is specified ?
How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.
Does jcl support automatic restart?
Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC
How to execute 2nd and 4th steps among 5 steps in jcl proc?
what JCL Procedures?