How to identify in JCL that an input file is empty without
reading it?
Answer Posted / mainframeking
Usinf IDCAMS we can check:
//step01 dd exec pgm=idcams
//sysprint dd sysout=*
//input dd dsn=file name to check, disp=shr
//sysin dd *
print infile(input)character count(1)
if return code is 0, file is not empty
if return code is 4, file is empty
| Is This Answer Correct ? | 17 Yes | 3 No |
Post New Answer View All Answers
Explain about LMQUERY�give a dialog information about a data set
what is “Cond= even” and “Cond=only”?
Explain the jcl exec statement?
what is the JCL statement consists of?
How jcl work to handle various input output file operations?
how you can access an uncataloged dataset in a JCL?
How does jcl specify the job to the operating system?
My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.
What statement can be used to send data to another mvs jes3 node?
What is the motivation behind coding class parameter in job statement?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
Explain how can values be passed from the job stream to an executable program?
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?
what is the use of IEBGENER utility?
which utility is used to run a cobol-db2 program?