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...

We are using 2 files , file one has data, file two is
empty.Using jcl how can we find the other file is empty?

Answer Posted / raghu

This can be done using ICETOOL.
//STEP1 EXEC PGM=ICETOOL
//IN DD DSN=……input file1
//TOOLMSGDD SYSOUT=*
//DFSMSG DD SYSOUT=*
//TOOLIN DD*
COUNT FROM(IN) EMPTY
/*

In the above JCL, Input file1 is empty. If we run this JCL
it will retrun NON-ZERO retrun code.
adv: It will be very helpful when we want to run some steps
after checking a particular file is empty or not.

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?

1299


in ways data can be passed to a COBOL program from JCL?

1214


by using cond parameter maximum 8 cond can be coded in single cond means ?explain

1451


Name a few IBM utility programs, and explain its function.

4961


how can the same proc be re-used and called by many jobs?

1498


if the submitter of a job wants to inform another user about the job completion, how can it be done?

1243


What is the function of //cntl statement?

1326


Explain the function of the dd dcb keyword?

1245


How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY

1373


what operation is performed by job statement?

1120


Explain the purpose of dd * statement in jcl?

1059


what happens in conversion stage in job processing?

1217


When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?

1214


How do you access an uncatalogued dataset in a jcl?

1213


How do you create a temporary dataset?

1173