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

Answer Posted / jayaprabhu

using the Uitility IEBPTPCH

If RC=04 no data ie the file is empty
rc=00 file is not empty

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of disp parameter?

662


What is notcat 2 - gs?

949


What are some jcl statements that are not allowed in procedures?

739


how can you check if a file is empty using jcl?

826


define cond parameter in jcl?

787






Explain about LMFREE�free data set from its association with data ID

1018


What are the jcl procedures?

655


Explain about ISPF/TSO Commands

1326


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

852


What is the job entry system used in your project? based on what criteria the sequence of jobs are picked if priority is not mentioned in the job card?

1817


Can an individual step be restricted from using all the jobs allowed cpu time?

1025


How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?

731


Describe the various parameters utilized in the creation of a gdg?

694


How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?

676


What are the difference between jcl and jes?

1059