Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 ?    6 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

If your job fails at particular step then what would be the return code for next steps

3 Answers   ADP,


How to execute 300 steps in a Job?

15 Answers   Accenture, Zensar,


How to delete generations of gdg without deleting gdg base?

3 Answers  


What is STEPLIB, JOBLIB? What is it used for?

2 Answers  


If we have 100 job steps in JCL and we want to excute steps only starting from 43 to 50, then how it can be coded in JCL/

10 Answers   IBM,


Explain how can the disposition of sysout datasets be set for an entire jobstream?

0 Answers  


How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.

0 Answers   CSC, SPIC,


What are the basic JCL Statements for a Job?

1 Answers  


how to override PROC? please give answer in details. Please mention how to write it in JCL. Thanks in advance.

6 Answers   Syntel, UHG,


Is automatic restart possible in jcl?

0 Answers  


What is the difference between a symbolic and an override in executing a PROC?

2 Answers  


Can we able insert data into a PS file Using IEBUPDTE utility??? If Yes can anyone describe it please..

1 Answers  


Categories