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
What do you understand by the term job time – out and how can you overcome that?
What is condition checking in jcl? Is this possible?
How does jcl act on code(if you take a cobol program)?
Why include statement is used in a jcl?
Explain the function of //cntl statement?
what is the compile process of cobol program expalin with code
what is the use of JCL?
Name a few IBM utility programs, and explain its function.
List the various advantages of using jcl language?
which parameter is used to check the syntax of a jcl without executing it?
what are the types of abends that occur on job failure? And explain the possible causes of these
Explain dfsort utility?
how you can direct the data to spool using SYSOUT option?
What are the difference between jcl and jes?
Which dd parameters are required?