Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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: 8629
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: 8629
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 Can we create REXX ouput in an Excel ... upendrasri CLIST & REXX 3 Wed Jan 17, 2018 8:19 pm
No new posts VSAM dataset not found abdulrafi JCL & VSAM 5 Fri Jan 12, 2018 11:19 am
No new posts Need to obtain VTOC information via R... djeffbland CLIST & REXX 10 Thu Jan 11, 2018 4:13 am
No new posts REXX contest sergeyken CLIST & REXX 2 Tue Jan 09, 2018 1:55 am
No new posts Looping REXX - unable to interrupt RAVISANKAR07 CLIST & REXX 3 Wed Dec 06, 2017 1:08 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us