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

How do you handle empty files in a JCL ?

3 Answers   Wipro, Xansa,


I have 3 duplicate records in a file . I want to eliminate 1st, 2nd and copy 3rd one only . HOW ?

3 Answers   CTS, DELL,


What is job control language?

0 Answers  


How dummy is used in jcl?

0 Answers  


Can you execute a PROC from another PROC?

8 Answers   Keane India Ltd,






what is the default region size if I dont specify region parametre in my job card ( I know that if I specify region=0k or 0M, then the job will occupy all he available resources at the time of job execution), but I want to know the defult value for "region" paramatre.

5 Answers   BirlaSoft, Infosys,


What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?

0 Answers  


I want to JCL sort for Non-COMP and COMP-3 fields SORT FIELDS=(1,5,A,6,11,A,12,11,A,19,1,A,20,1,A),FORMAT=BI,EQUALS Length of comp bytes is 11 bytes which start at 6byte and 12 byte considering 11 bytes in comp-3 is 6 bytes. Can anyone tell if the above sort work SORT FIELDS=(1,5,A,6,6,A,12,6,A,19,1,A,20,1,A),FORMAT=BI,EQUALS does not works OK

0 Answers   IBM,


Explain about LMMLIST�list a library's members

1 Answers  


how to run JCL thru COBOL.

1 Answers   Patni,


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

3 Answers  


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

4 Answers  


Categories