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


Please Help Members By Posting Answers For Below Questions

Explain the function of //cntl statement?

661


What do you understand by the term notcat 2 – gs?

759


how to compare two datasets without using superce because output is limited to 133 bytes

1486


What is the format of comment statement?

674


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

862






Name what parameter directs the output of the job log dataset?

567


what happens in conversion stage in job processing?

734


What is the function of the dd avgrec keyword in sms datasets?

843


what JCL Procedures?

703


Explain the purpose of dd * statement in jcl?

643


What is the purpose of the dd keylen parameter?

726


How to submit jcl through a cobol program?

681


How dummy is used in jcl?

651


what happens in execution stage in job processing?

657


What is the function of job statement in jcl?

638