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

Answer Posted / nbohr02

By adding an ICETOOL (DFSORT) step you can force a return
code on empty with the COUNT (dd) EMPTY this will set RC to
12 so your Batch scheduler may not like it.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.

1934


Is their any limit for data sets?

692


which utility is used a dummy utility?

776


I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?

1336


What are the parameters that are used in creating a gdg?

725






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

909


What parameters can be used to limit the number of records written to a sysout dataset?

734


how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?

776


What are the 2 types of parameters in dd statement?

635


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

810


I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?

684


What are hierarchy levels in jcl?

938


Why include statement is used in a jcl?

677


What is the format of comment statement?

649


what JCL Procedures?

689