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 are the 2 types of parameters in dd statement?
Explain how can values be passed from the job stream to an executable program?
how do you access an uncataloged dataset in a jcl?
what JCL Procedures?
What parameter of the job statement is used to limit the cpu time consumed by the job?
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
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?
Is automatic restart possible in jcl? If yes, how?
what is a jcl?
what is the compile process of cobol program expalin with code
What is the function of the dd avgrec keyword in sms datasets?
Is there any command to check wether the ps file is in sorted order?
What are the parameters that are used in creating a gdg?
What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?
what is use of dsn parameter in dd statement?