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 operation is performed by job statement?

648


What is the function of a dd statement?

698


Immediate Job opening for mainframe professionals in Keane Bangalore. Please find the below details: Organization: Keane India Location: Bangalore Skill: COBOL, JCL,VSAM,DB2,CICS,IMS,REXX,CLIST Exp: 1 to 4 years only Employment Type: Permenant Employee Note: If you have attended keane interview in past 6 months please ignore this job opening. Please respond to email id keanemfjob@gmail.com OR keanemfjob@yahoo.in with your latest resume and following details, We will contact you within 24 hours: Total IT Exp: Exp in Mainframe: Current CTC: Expected CTC: Notice Period:

3518


Explain the purpose of dd dummy statement?

658


how you can direct the data to spool using SYSOUT option?

909






How does jcl act on a cobol code?

645


What methodology can be adapted to transfer data to a program that is coded using the exec statement?

598


How dummy is used in jcl?

635


if the submitter of a job wants to inform another user about the job completion, how can it be done?

739


What is the function of the steplib dd statement?

726


when does a dataset go uncataloged?

820


What is the motivation behind coding class parameter in job statement?

670


Can we call instream to catalog and catalog to instream?

671


What do we mean by 'Virtual storage' for a dataset and for a JOBSTEP ? What is the significance of the following statement for a programmer 'Virtual storage results in program addresses being independent of the addresses that actually exist in a computer' ?

1574


What is concatenating?

624