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: 73
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: 2025
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: 73
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: 2025
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
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm


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