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
Explain the function of the dd dcb keyword?
what are JCLLIB and STEPLIB in JCL?
if the submitter of a job wants to inform another user about the job completion, how can it be done?
what is DSN parameter and DISP parameter is used for?
How does jcl specify the job to the operating system?
Explain about LMQUERY�give a dialog information about a data set
What is the purpose of the dd keylen parameter?
which utility is used to sort a file in jcl?
Which dd parameters are required?
Mention the types of job control statements?
Explain how can a stopped job be started again?
whats the diff bw the evaluate also and and?
What is the function of dd name parameter with a 2 part structure; audit.report?
I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?
How can unused space allocation be returned to the system when a dataset is closed?