How do you handle empty files in a JCL ?

Answer Posted / guest

Yes, we can handle empty file in JCL, there is utility
provided by IBM "UT939" ,eg //STEP1 EXEC PGM=UT939,
IF step1 return code is 4 then there is empty file and else
if return code is 0 (for non-empty file). We can handle
this with COND parameters whether to execute next step or
not if file is empty.
SUPPOSE WE DON'T WANT TO EXECUTE THEN
eg //STEP2 EXEC PGM=XXX,
COND=(4,EQ,STEP1)

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the function of the dd dcb keyword?

810


Is there any command to check wether the ps file is in sorted order?

2416


what sort card you will use to copy the data from one dataset to another dataset?

713


Explain the function of job statement in jcl?

633


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

643






what happens in conversion stage in job processing?

716


What is the purpose of dd?

712


Is it possible to code instream data in a PROC?

738


Can an individual step be restricted from using all the jobs allowed cpu time?

997


which parameter is used to check the syntax of a jcl without executing it?

788


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


Is it possible to left uncode disp?

701


which utility is used to run a cobol-db2 program?

791


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

721


What are the difference between jcl and jes?

1036