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 ? | 6 Yes | 1 No |
Post New Answer View All Answers
How can a stopped job be started again?
WORKING-STORAGE SECTION. 01 GROSS-PAY. 05 BASIC-PAY PIC 9(5). 05 ALLOWENCES PIC 9(3). PROCEDURE DIVISION. MOVE 1000 TO BASIC-PAY. MOVE 250 TO ALLOWENCES. DISPLAY GROSS-PAY. STOP RUN. 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 123.45 after the statement MOVE W-A TO W-B what will be W-B's value? a.123.75 b.b23.75 (where b indicates space) c.023.75 d.invalid move
When space is allocated for an output dataset, what units can be used?
which utility is used a dummy utility?
what is DSN in JCL and what are the parameters to declare the DSN?
Name the parameters which can be used to limit the number of records written to a sysout dataset?
What is the purpose of dd * statement in jcl?
Explain how can return codes be tested before execution of a job step?
how can the same proc be re-used and called by many jobs?
What is the function of the dd avgrec keyword in sms datasets?
how you can access an uncataloged dataset in a JCL?
Can an individual step be restricted from using all the jobs allowed cpu time?
what is use of disp parameter in dd statement?
Explain how can values be passed from the job stream to an executable program?
How jcl is used for testing batch programs?