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
What is the function of the dd dcb keyword?
Is there any command to check wether the ps file is in sorted order?
what sort card you will use to copy the data from one dataset to another dataset?
Explain the function of job statement in jcl?
Name the parameters which can be used to limit the number of records written to a sysout dataset?
what happens in conversion stage in job processing?
What is the purpose of dd?
Is it possible to code instream data in a PROC?
Can an individual step be restricted from using all the jobs allowed cpu time?
which parameter is used to check the syntax of a jcl without executing it?
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
Is it possible to left uncode disp?
which utility is used to run a cobol-db2 program?
Is condition checking possible in jcl? If yes, how?
What are the difference between jcl and jes?