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

Explain the jcl exec statement?

855


What are hierarchy levels in jcl?

1212


Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed

2247


Why block size is multiple of lrecl in jcl?

1108


what is the JCL statement consists of?

881






What dd statement is used to supply the name of a dataset?

1055


What do you understand by the term job time – out and how can you overcome that?

772


Matching Logic in Jcl not in cobol.Could any one please answer this question

3903


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?

9340


I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?

938


How to submit a jcl from cics?

849


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

968


what is use of dsn parameter in dd statement?

881


what is the difference between JES3 and JES2?

866


How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY

1071