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 / sivakumar
Use comparex/ISRSUPC utility and compare ur file with an
empty file of the same DCB parameter. Retrun code of 28
means the file is empty. return code of 1 means the file is
not empty.
| Is This Answer Correct ? | 5 Yes | 7 No |
Post New Answer View All Answers
is there any way to execute more than one proc in the same exec statement at the same time..?
How to execute 2nd and 4th steps among 5 steps in jcl proc?
How to submit jcl through a cobol program?
What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?
What are hierarchy levels in jcl?
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?
what is the difference between JES3 and JES2?
Are there any set of rules for the names of the steps used in a job? What are they?
What is Cataloged Procedures?
List the different components of jcl statement?
Which dd parameters are required?
Explain about ISPF/TSO Commands
how can you check if a file is empty using jcl?
What are the utility programs in jcl?