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 ?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you submit a job for execution?

1106


why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.

2454


What is the purpose of disp parameter?

1118


Is automatic restart possible in jcl?

1209


What parameter directs the output of the job log dataset?

1278


How to pass data to a program that is coded in an exec statement?

1333


Matching Logic in Jcl not in cobol.Could any one please answer this question

4154


what happens in conversion stage in job processing?

1220


which utility is used to sort a file in jcl?

1218


Explain the function of the steplib dd statement?

1132


How to do automated restart when a job abend?

1380


What do you know about jcl?

1137


How is a type of file defined in the jcl that executes the cobol program?

1188


what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?

1219


Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE

2454