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

can any one plzzzzzz tell the jcl code for creating ps using idcams

10496


what is use of dsn parameter in dd statement?

666


List in order the hierarchical levels of jcl?

664


Can I send output of job to my remote device careerride123?

661


How can the disposition of sysout datasets be set for an entire jobstream?

834






What is the function of the dd dcb keyword?

819


What is use of restart and how to use it?

758


Explain the function of the dd dcb keyword?

694


Explain how can the attributes of one sms dataset be copied to another dataset?

703


Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?

2214


What are s0c1, s0c4, s0c5, s0c7 and socb?

695


when can a job time-out occur? How to overcome that?

748


How can a fb file convert to vb file using sort program?

800


which utility is used to sort a file in jcl?

743


Explain how can a stopped job be started again?

634