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 / naren

IFEMPTY utility is used to check the file is empty or not,
if the return code of this step is 4 then the file is empty.

Is This Answer Correct ?    15 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one

1927


Explain the function of the steplib dd statement?

637


What is the syntax of JCL statement?

688


How to resolve the error "WER488A JOIN CAPACITY EXCEEDED" I am using SYNCSORT with JOINKEYS to compare 2 files. I am Getting error - > WER488A JOIN CAPACITY EXCEEDED There are 2 files to be compared with about 2 million records each. LRECL is 3665. Can somebody give a pointer as to how to resolve this problem? I am using SYNCSORT with JOINKEYS to compare 2 files. I am Getting error - > WER488A JOIN CAPACITY EXCEEDED There are 2 files to be compared with about 2 million records each. LRECL is 3665. Can somebody give a pointer as to how to resolve this problem?

7595


What parameters can be used to limit the number of records written to a sysout dataset?

744






How does jcl act on code(if you take a cobol program)?

705


a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?

608


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

834


what is a jcl?

685


in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?

2050


Is condition checking possible in jcl? If yes, how?

735


Can we use DISP=SHR in output file in JCL

951


What is condition checking in jcl? Is this possible?

619


I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.

1726


hello friends ,i have exam in Hsbc,pls any on send me placement papers and technical questions on mainframes,thank u

1661