Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checking catalog for pds

Status
Not open for further replies.

jp1979

Programmer
Dec 28, 2006
2
US
I am trying to write a rexx prog to check to see if a pds is cataloged. any ideas on an easy statement that will do this?

"ALLOC DA("DSN") F(INDDXX) shr reuse" - seems to work for sequential dsn's. but i need something for pds's..

thanks
 
Well, a dataset is a dataset is a dataset. That technique will tell you whether the dataset exists or not, but not whether it's sequential or partitioned.

If what you want is to know whether this dataset is a PDS or not, "LISTDSI" is your guy. The write-up is in the TSO-E CLIST reference. One of the variables brought back by a successful LISTDSI call is "SYSDSORG": PS or PO or PO-E.


Frank Clarke
Tampa Area REXX Programmers' Alliance
REXX Language Assn Listmaster
 
okay, i think i missworded my question... i need to see if a particular member exist. dsn.name(member).

the above statement works for the dsn.name but it doesn't do anything for the member. i just want to give a return code if the memeber does not exist.

thanks for the help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top