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

what operation is performed by job statement?

832


How jcl is used for testing batch programs?

941


Explain about ISPF/TSO Commands

1565


I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?

1056


what is the purpose of coding notify parameter in job statement?

878


What is the function of dd disp parameter?

846


What is one line to pass PARM from JCL to COBOL?

4660


How jcl work to handle various input output file operations?

853


write a jcl to execute a job by 7:00 am on jan 20,1986?

867


Is it possible to left uncode disp?

903


What is the function of the dd dcb keyword?

1038


How do you access an uncatalogued dataset in a jcl?

924


Differentiate between the joblib and the steplib statements?

1063


what is the use of IEBGENER utility?

870


We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?

2069