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

My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.

1986


What are the parameter we cannot use in procedure? How many instream we can write in single jcl?

583


what are the types of abends that occur on job failure? And explain the possible causes of these

1118


when can a job time-out occur? How to overcome that?

753


a dd statement has 2 types of parameters. Name them?

647






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

1006


what are the various stages of job processing?

738


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

654


how would you create a temporary dataset? And where will you use them?

768


Which statement is used to identify the private libraries in job?

678


what is use of dcb parameter in dd statement?

775


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?

718


In job processing, what happens in execution stage?

698


what is use of space parameter in dd statement?

758


what is the use of IEBGENER utility?

662