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 / manid
//STEP1 EXEC PGM=IDCAMS
//DD1 DD DSN=FILE1
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
PRINT INFILE(DD1) COUNT(*)
/*
IF STEP1 RETURNS RC=4 THEN FILE1 IS EMPTY FILE
I HOPE THIS WILL HELP YOU
Thanks
ManiD
| Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
Is automatic restart possible in jcl?
what happens in conversion stage in job processing?
what is DD statement is used in JCL?
How do you create a temporary dataset?
Explain the function of dd disp parameter?
Explain how can the attributes of one sms dataset be copied to another dataset?
What is the purpose of disp parameter?
Is their any set of rules for dd? Explain.
How can values be passed from the job stream to an executable program?
What are the difference between jcl and jes?
Explain the jcl exec statement?
In sms datasets, what is the function of the dd avgrec keyword?
what are JCLLIB and STEPLIB in JCL?
what is use of disp parameter in dd statement?
What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?