How do you handle empty files in a JCL ?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / bharani
Read first record of the file using IDCAMS, It will return
the cc=0 if the file is not empty, otherwise it returns
CC=4.
| Is This Answer Correct ? | 5 Yes | 3 No |
In job processing, what happens in conversion stage?
a job have 5 steps and it will executes a proc which have 5steps in it. now i have to execute step3 only when step2 of proc executes successfully
How can the attributes of one sms dataset be copied to another dataset?
What is notcat 2 - gs?
What statement can be used to send data to another mvs jes3 node?
Is there a limit of 3273 DD statements for a JCL or for every EXEC step in a JCL?
What are SD37, SB37, SE37 abends?
how JCL works?
in production region 100 steps are running,but i need to run only step5 without changing code how can i do it?
Could you provide an example and its effect OF, Using COND on JOB and EXEC both ?
Can you code instream data in a PROC ?
01 A. 10 B pic X(10). move spaces to A. move spaces to B. output in A & B