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
can any one plzzzzzz tell the jcl code for creating ps using idcams
What is the maximum length of a single line of jcl?
What is the function of a dd statement?
which parameter is used to check the syntax of a jcl without executing it?
How can unused space allocation be returned to the system when a dataset is closed?
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?
What is Cataloged Procedures?
What is concatenating?
what is “Cond= even” and “Cond=only”?
How do you submit a job for execution?
List the different jcl statements that are not permitted in the procedures?
Explain the function of dd disp parameter?
Can we call instream to catalog and catalog to instream?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?