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

how to run batch program without jcl?

10086


I have mainpgm(abc) this is the only cobol pgm(non-db2).And this pgm calling subpgm name "acd" this also only cobol(non- Db)and this pgm calling some other subpgm this pgm has cobol-db2 pgm. 1) IF you calling static mode how to run and how to compile? 2) IF you calling dynamic mode how to run and how to compile? plz suggestion me.

1954


How can a jobs execution priority be modified?

799


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

842


in ways data can be passed to a COBOL program from JCL?

669






Can we use DISP=SHR in output file in JCL

953


What is use of restart and how to use it?

772


I had Records in file Like this Company Code IBM 2 IBM 1 IBM 4 WIPRO 3 WIPRO 2 WIPRO 9 TCS 4 TCS 6 TCS 3 i want the record of every company with highest code How can i do that?

8685


what JCL Procedures?

701


What is the purpose of dd * statement in jcl?

812


Explain the purpose of dd * statement in jcl?

643


whats the diff bw the evaluate also and and?

1857


Is acct parameter mandatory?

764


What parameter of the job statement is used to limit the cpu time consumed by the job?

841


Why include statement is used in a jcl?

691