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
What is the motivation behind coding class parameter in job statement?
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?
What is the function of dd name parameter with a 2 part structure; audit.report?
Explain how can the attributes of one sms dataset be copied to another dataset?
define cond parameter in jcl?
I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?
Explain the function of a dd statement?
what EXEC statement is and what is the syntax of EXEC statement used in JCL?
what are the various stages of job processing?
In sms datasets, what is the function of the dd avgrec keyword?
Which dd parameters are required?
what is the purpose of coding class parameter in job statement?
how to compare two datasets without using superce because output is limited to 133 bytes
What are steplib and joblib? What for they are used?
Explain the purpose of dd dummy statement?