How do you handle empty files in a JCL ?

Answers were Sorted based on User's Feedback



How do you handle empty files in a JCL ? ..

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 ?    5 Yes 1 No

How do you handle empty files in a JCL ? ..

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

How do you handle empty files in a JCL ? ..

Answer / guest

by using dummy

Is This Answer Correct ?    2 Yes 6 No

Post New Answer

More JCL Interview Questions

what is the purpose of SYSOUT parameter in the DD statement?

1 Answers  


I have a File that has duplicate records. I need only those records that occur more than thrice.

3 Answers  


What is the differentiation between TRK,cyl, and Bytes... how they can be connected??

2 Answers  


Explain the function of dd disp parameter?

0 Answers  


how GDGs are concatinated?

4 Answers   HSBC,






How to use COND Parameter in jcl

4 Answers   NIIT, Wipro,


When concatenating two PDS can any one PDS can have empty dataset i.e without any value(Dummy).

2 Answers  


which utility is used a dummy utility?

0 Answers   IBM,


shall we concordinate two different length dataset in to a new date set.

6 Answers  


HOW TO CONVERT VARIABLE BLOCK TO FIXED BLOCK ?

1 Answers   IBM,


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

0 Answers  


How can an in-stream dataset be terminated?

0 Answers  


Categories