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

How to submit jcl through a cobol program?

874


In job processing, what happens in execution stage?

878


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

886


When output dataset space is required, what quantity categories are used?

1077


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

972


Explain how can return codes be tested before execution of a job step?

1040


what is the compile process of cobol program expalin with code

2293


a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?

815


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?

2005


what is use of space parameter in dd statement?

947


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

777


Explain the function of the steplib dd statement?

830


what is the resolution for sb37 error

8320


Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE

2180


What is NOTCAT ?

1028