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
How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
How is a type of file defined in the jcl that executes the cobol program?
Explain dd statement in jcl?
What is timing concept in mainframe?
what is the use of IEBGENER utility?
Can we use DISP=SHR in output file in JCL
What is the purpose of dd * statement in jcl?
Explain how can the disposition of sysout datasets be set for an entire jobstream?
What is the function of a dd statement?
How can the attributes of one sms dataset be copied to another dataset?
What is the function of dd name parameter with a 2 part structure; audit.report?
What is the format of comment statement?
What is use of restart and how to use it?
Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?