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 / vani
By IDcams its is possible
// STEP EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//FILE1 DD DSN=INPUT-FILE,DISP=SHR
//SYSIN DD *
PRINT INFILE(FILE1)
DUMP COUNT(1)
/*
IF THE FILE IS EMPTY JCL GIVES RC=4
| Is This Answer Correct ? | 21 Yes | 6 No |
Post New Answer View All Answers
How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY
What are the 4 fields in dd statement?
How jcl is used for testing batch programs?
What does a disposition of (new,catlg,keep) for a dsn mean?
which utility is used a dummy utility?
if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?
I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one
Is their any set of rules for dd? Explain.
what is the purpose of coding class parameter in job statement?
How do you access an uncatalogued dataset in a jcl?
What are steplib and joblib? What for they are used?
What is the purpose of the dd keylen parameter?
how can the same proc be re-used and called by many jobs?
how to run batch program without jcl?
How to alter the parameters for the existing gdg?