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
 

 

Rexx store mamber names found within PDS

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

New User


Joined: 01 Jul 2010
Posts: 2
Location: UK

PostPosted: Wed Jul 14, 2010 6:36 pm    Post subject: Rexx store mamber names found within PDS
Reply with quote

Hey guys,

somewhat new to Rexx i am trying to do the following.
1)provide list of members found within a particular pds
2)search entire pds for a specific string
3)replace that string with another.

to date i have been able to search and list all members of a particular database while separately searching specific members for strings to change.

my question is this;

using LISTDS, i have a printed list of members found within a PDS. is there a way to store each member name so when i initiate the change string code it looks at the member names which have been found in the PDS?

i am trying to get around a user having to provide each member name by allowing them to supply a PDS to search.

+
i am aware there may already be a function to do this automatically but as i mentioned i am learning so i am simply experimenting.
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Wed Jul 14, 2010 6:44 pm    Post subject: Re: Rexx store mamber names found within PDS
Reply with quote

cfear wrote:
my question is this;

using LISTDS, i have a printed list of members found within a PDS. is there a way to store each member name so when i initiate the change string code it looks at the member names which have been found in the PDS?


Have you looked at some of the other REXX topics that use LISTDS?
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 Jul 14, 2010 6:45 pm    Post subject:
Reply with quote

What code did you use to get the list of PDS members.
Back to top
View user's profile Send private message
cfear

New User


Joined: 01 Jul 2010
Posts: 2
Location: UK

PostPosted: Wed Jul 14, 2010 6:50 pm    Post subject:
Reply with quote

expat wrote:
What code did you use to get the list of PDS members.


Code:

ADDRESS TSO
'PROFILE NOPREFIX'
SAY "PROG START"
"EXECIO * DISKR PDS (STEM PDS. FINI

DO ILIST = 1 TO PDS.0
I = 0
PDS.ILIST= STRIP(PDS.ILIST,T)

X=OUTTRAP("RES.")
"LISTDS ('"PDS.ILIST"') MEMBERS"
X=OUTTRAP("OFF")

DO I = 7 TO RES.0
RES.I = STRIP(RES.I)
SAY RES.I


the PDS is provided via jcl.

unsure how to go about storing the found membernames
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 Jul 14, 2010 6:58 pm    Post subject:
Reply with quote

You already have them in the stem variable RES.
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 Row not found Sql error GaganGarg DB2 7 Tue Mar 07, 2017 6:29 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm
No new posts REXX compiled via RXTCOMP sergeyken CLIST & REXX 7 Tue Feb 07, 2017 9:41 pm
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


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