How to test thru JCL if any file(PS or VSAM) is empty or
not. I do not want to use any COBOL prog or Ezytrieve and
want to do using utility.
Answer Posted / deb
First SORT the input file.
Assume the sorted o/p is in MY.SORT.FILE, then run this step
//CHEKEMTY EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//MYFILE DD DSN=MY.SORT.FILE,DISP=SHR
//SYSIN DD *
PRINT INFILE(MYFILE) CHARACTER COUNT(1)
if the above step returns a RC=4, then the file is
empty
| Is This Answer Correct ? | 10 Yes | 5 No |
Post New Answer View All Answers
Name the statement which can be used to send data to another mvs jes3 node?
What do you know about jcl?
Does jcl support automatic restart?
How does jcl act on code(if you take a cobol program)?
How to submit a jcl from cics?
Where & How Do You Code Identifier In Jcl?
What are steplib and joblib?
What is jcl in mainframe?
What is the significance of addrspc parameter in the exec statement?
How can an in-stream dataset be terminated?
Is automatic restart possible in jcl?
Give the syntax of job specifying jcl statement.
What is the syntax of JCL statement?
what happens in conversion stage in job processing?
What is the maximum length of a single line of jcl?