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

the command to open a dataset directly from the JCL instead of opening it separately using 3.4 option.

7 Answers   IBM,


Suppose there r total 10 steps. Out of which i want to execute only the 7th step. How can i do that....????

3 Answers  


When we give TYPERUN = SCAN , what are the syntax errors we get?

5 Answers   Kanbay,


Can you code instream data in a PROC ?

10 Answers  


what is the purpose of coding class parameter in job statement?

0 Answers   IBM,


Is it possible to take a PDS and write it to a GDG? If so, can you provide an example? Thanx

7 Answers  


Given a input file with duplicates how to remove the duplicate records from the file using JCL?

6 Answers   CDS, Convergys, TCS,


can we modify the code in copy book? if it possible how to submit ofter the modification.

3 Answers   IBM, L&T,


A maximum of 100 chars can be passed to Cobol through Parm in JCL, If we want to pass more than 100 Chars how we can do it ?

4 Answers   IBM,


How can return codes be tested before execution of a job step?

0 Answers  


How to pass values in jcl to cobol?

4 Answers   IBM, Infosys,


How to read records in reverse order in flat file?

1 Answers  


Categories