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 / ekluba

With proper Syntax answer #5 is correct:

//SYSPRINT DD SYSOUT=*
//DD1 DD DSN=???.EMPTY,DISP=SHR
//SYSIN DD *
PRINT INFILE(DD1) COUNT(1)
/*

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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?

1116


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

1244


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

1152


Explain dd statement in jcl?

1064


What is timing concept in mainframe?

2161


what is the use of IEBGENER utility?

1125


Can we use DISP=SHR in output file in JCL

1378


What is the purpose of dd * statement in jcl?

1240


Explain how can the disposition of sysout datasets be set for an entire jobstream?

1046


What is the function of a dd statement?

1159


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

1369


What is the function of dd name parameter with a 2 part structure; audit.report?

1184


What is the format of comment statement?

1141


What is use of restart and how to use it?

1277


Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?

1069