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

Is condition checking possible in jcl? If yes, how?

1290


What dd statement is used to supply the name of a dataset?

1386


Mention the types of job control statements?

1174


Which dd parameters are required?

1184


What is the function of a dd statement?

1206


Define concatenating?

1100


How to submit a jcl from cics?

1150


IIN APITUDE THEY GAVE ONLY 10 QUESTIONS.. THEY ARE SIMPLE ONE FROM NUMBER SERIES,BOATS,TIME & DISTANCE,PROFIT &LOSS,FIND OUT THE NUMBER ? 9 25 4 36 81 64 49 AND surveillance SPELLINGS E.T.C

2184


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

1248


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

2456


Can I send output of job to my remote device careerride123?

1137


how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?

1280


What statement can be used to send data to another mvs jes3 node?

1642


Is it possible to code instream data in a PROC?

1330


what EXEC statement is and what is the syntax of EXEC statement used in JCL?

1168