Is there a way to check for an empty file in JCL other than
using IEBCOMPR and the command PRINT COUNT(1)?

Answer Posted / arun

Use the SORT utility with NULLOUT=RC04 OR RC16..If the file
is empty the step returns either 04 or 16 depending on what
you coded.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the function of job statement in jcl?

636


Explain how can a stopped job be started again?

636


what is JCL?

698


Explain the function of dd disp parameter?

595


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?

7606






What is the function of the steplib dd statement?

744


What are the difference between jcl and jes?

1050


When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?

748


List the different jcl statements that are not permitted in the procedures?

641


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

759


Is it possible to define dd statements as you want?

646


i want to store 20 digits . how will u do it in cobol ?

860


What is the use of symbol // in jcl?

930


how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?

803


How to pass data to a program that is coded in an exec statement?

829