View previous topic :: View next topic
|
Author |
Message |
rexx77
New User
Joined: 14 Apr 2008 Posts: 78 Location: Mysore
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Look at SYSDSN |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
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 |
|
|
rexx77
New User
Joined: 14 Apr 2008 Posts: 78 Location: Mysore
|
|
|
|
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 |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
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 |
|
|
MBabu
Active User
Joined: 03 Aug 2008 Posts: 400 Location: Mumbai
|
|
|
|
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 |
|
|
|