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 test thru JCL if any file(PS or VSAM) is empty or
not. I do not want to use any COBOL prog or Ezytrieve and
want to do using utility.

Answer Posted / manid

//STEP1 EXEC PGM=IDCAMS
//DD1 DD DSN=FILE1
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
PRINT INFILE(DD1) COUNT(*)
/*

IF STEP1 RETURNS RC=4 THEN FILE1 IS EMPTY FILE

I HOPE THIS WILL HELP YOU

Thanks
ManiD

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is automatic restart possible in jcl?

1161


what happens in conversion stage in job processing?

1185


what is DD statement is used in JCL?

1152


How do you create a temporary dataset?

1136


Explain the function of dd disp parameter?

1063


Explain how can the attributes of one sms dataset be copied to another dataset?

1170


What is the purpose of disp parameter?

1082


Is their any set of rules for dd? Explain.

1127


How can values be passed from the job stream to an executable program?

1393


What are the difference between jcl and jes?

1556


Explain the jcl exec statement?

1102


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

1054


what are JCLLIB and STEPLIB in JCL?

1120


what is use of disp parameter in dd statement?

1058


What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?

1100