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 / ekluba
With proper Syntax answer #5 is correct:
//SYSPRINT DD SYSOUT=*
//DD1 DD DSN=???.EMPTY,DISP=SHR
//SYSIN DD *
PRINT INFILE(DD1) COUNT(1)
/*
Is This Answer Correct ? | 9 Yes | 2 No |
Post New Answer View All Answers
Explain the function of //cntl statement?
What do you understand by the term notcat 2 – gs?
how to compare two datasets without using superce because output is limited to 133 bytes
What is the format of comment statement?
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
Name what parameter directs the output of the job log dataset?
what happens in conversion stage in job processing?
What is the function of the dd avgrec keyword in sms datasets?
what JCL Procedures?
Explain the purpose of dd * statement in jcl?
What is the purpose of the dd keylen parameter?
How to submit jcl through a cobol program?
How dummy is used in jcl?
what happens in execution stage in job processing?
What is the function of job statement in jcl?