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 to identify where file is empty or not? How many ways are
there to identifying?

Answer Posted / fred

There are so many ways this can be done.

DFSORT/SYNCSORT
ICETOOL/SYNCTOOL
IDCAMS
FILEAID/FILEMANAGER
IEBPTPCH
ISRSUPC
EASYTRIEVE
Using REXX checking with EXECIO / LISTDSI



Using SORT is the easiest:

//jobcard

//S010 EXEC PGM=SORT,PARM='NULLOUT=RC4'
//SYSOUT DD SYSOUT=*
//SORTIN DD DISP=SHR,DSN=<datasetname>
//SORTOUT DD DUMMY
//SYSIN DD *
SORT FIELDS=COPY
/*


-- RC 4 if Empty
RC 0 if there is data.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the rules employed while naming the steps in a job?

1141


Does jcl support automatic restart?

1232


What are the utility programs in jcl?

1161


What is the function of the steplib dd statement?

1203


what is use of disp parameter in dd statement?

1102


In sms datasets, what is the function of the dd mgmtclas keyword?

1385


how JCL works?

1268


Explain the jcl exec statement?

1146


what is the use of JCL?

1158


Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?

1227


Explain the function of dd disp parameter?

1122


What methodology can be adapted to transfer data to a program that is coded using the exec statement?

1219


How dummy is used in jcl?

1149


How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?

1162


Is it possible to left uncode disp?

1206