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

Read a string in multiple PDS members


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

New User


Joined: 26 May 2008
Posts: 50
Location: Bangalore

PostPosted: Thu Oct 20, 2011 11:30 am
Reply with quote

Hi,

I want to search for a STRING in a PDS which has around 200 members using REXX. I know I can do this using 3.15 Search option but I am writing a Rexx tool to display all the programs in which this particular string is found.

Please suggest me how to read a PDS one member after another member? Thanks
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Oct 20, 2011 11:36 am
Reply with quote

tell US for what reason we should waste out time in thinking on how to reinvent the wheel icon_evil.gif

How to read a PDS member has been debated too many times, just search the forums!
Back to top
View user's profile Send private message
vinayknj

New User


Joined: 26 May 2008
Posts: 50
Location: Bangalore

PostPosted: Thu Oct 20, 2011 12:50 pm
Reply with quote

I am sorry if these are repeated queries.

I know how to read a PDS member by giving member name. But in my case I want to read all the members in a PDS one after another. I am not sure if this can be done through Rexx.

Thanks,
Vinay Kumar N.J
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Oct 20, 2011 1:29 pm
Reply with quote

vinayknj wrote:
I want to search for a STRING in a PDS which has around 200 members using REXX. I know I can do this using 3.15 Search option but I am writing a Rexx tool to display all the programs in which this particular string is found.

Why on earth are you writing a tool for something that already exists ?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Oct 20, 2011 2:49 pm
Reply with quote

well there are two ways to go about this:

1. invoke superc from rexx, parse the output

2. learn the lmm... routines contained in the ISPF services manual,
(of which there are about 2000000000000000 threads).


[Personal Opinion Start]

Funny, these rookies who write TOOLS
that have no idea what is available on the mainframe,
nor how to do it,
spend their time writting interfaces for things
instead of writing useful tools, that would provide system-wide analysis to COBOL systems.


[Personal Opinion End]
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Oct 20, 2011 9:00 pm
Reply with quote

Quote:
I am not sure if this can be done through Rexx.

Yes it can
see here
www.ibmmainframes.com/viewtopic.php?t=25947&highlight=
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Error to read log with rexx CLIST & REXX 11
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
Search our Forums:

Back to Top