IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Checking for member in a PDS using rexx


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rexx77

New User


Joined: 14 Apr 2008
Posts: 78
Location: Mysore

PostPosted: Wed Jan 07, 2009 7:45 pm
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: 8797
Location: Welsh Wales

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

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

Global Moderator


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

PostPosted: Wed Jan 07, 2009 10:17 pm
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: 78
Location: Mysore

PostPosted: Thu Jan 08, 2009 10:20 am
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

Global Moderator


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

PostPosted: Thu Jan 08, 2009 10:23 pm
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: 400
Location: Mumbai

PostPosted: Fri Jan 09, 2009 12:25 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top