Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Checking for member in a PDS using rexx

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
rexx77

New User


Joined: 14 Apr 2008
Posts: 74
Location: Mysore

PostPosted: Wed Jan 07, 2009 7:45 pm    Post subject: Checking for member in a PDS using rexx
Reply with quote

Greetings!!

i have a requirement to check for the member name in some PDS, but the PDS has more than 65000 members so it will take good amount of time if i wanted to do it in rexx. i am just thinking of any other functions in rexx which gives me some kind of information whether the member is present or not when i pass PDS NAME and MEM NAME to that.
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Jan 07, 2009 8:07 pm    Post subject:
Reply with quote

Look at SYSDSN
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2033
Location: Silicon Valley

PostPosted: Wed Jan 07, 2009 10:17 pm    Post subject: Reply to: Checking for member in a PDS using rexx
Reply with quote

Quote:
so it will take good amount of time if i wanted to do it in rexx

Just curious, how were you thinking of doing it without SYSDSN?
Back to top
View user's profile Send private message
rexx77

New User


Joined: 14 Apr 2008
Posts: 74
Location: Mysore

PostPosted: Thu Jan 08, 2009 10:20 am    Post subject:
Reply with quote

I thought of getting the member list in an array for the particular PDS using LISTDS MEMBER command. It will take good amount of time if i check for the member name whether it is present in the array or not.

Hope i clarified.
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2033
Location: Silicon Valley

PostPosted: Thu Jan 08, 2009 10:23 pm    Post subject: Reply to: Checking for member in a PDS using rexx
Reply with quote

Quote:
the PDS has more than 65000 members

Not sure, but you should probably use a PDSE instead of a PDS. I think the directory search is faster.

Regardless of how you get your list of members for PDS, the most amount of time will be in the reading of the directory with so many members.
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 401
Location: Mumbai

PostPosted: Fri Jan 09, 2009 12:25 pm    Post subject: Reply to: Checking for member in a PDS using rexx
Reply with quote

If you can, read the directory once into a stem variable rather than reading the directory multiple times. You can use LISTDS, IEHLIST, ISPF, or read the directory directly with Rexx. All are pretty fast if you are only doing it once. Reading a 65000 member directory to a stem variable with EXECIO took 2.6 seconds on my system but ISPF services should faster
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts Browsing member from any PDS shiitiizz CLIST & REXX 7 Wed Mar 08, 2017 1:17 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm
No new posts Bind plan as a member to another bind... rexx77 DB2 0 Thu Feb 16, 2017 2:02 am
No new posts Checking Current date vickey_dw DFSORT/ICETOOL 1 Wed Feb 08, 2017 11:14 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us