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

Sample rexx code to search a PDS


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
APD1

New User


Joined: 18 Feb 2009
Posts: 59
Location: India

PostPosted: Thu Mar 05, 2009 11:10 am
Reply with quote

I have a requirement wherein for example I am searching a text like 'XXXX' in a PDS having more than 1000 members. Now suppose this text is in 700 out of 1000 members then I would like to have the list of this 700 members in a PS dataset using a rexx code. Using 3.12 ispf option I can search for the text but it gives some extra info as well which i dont want . I only need the name of the members in which this text is present. Please let me know the sample rexx code for this. Thanks
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Mar 05, 2009 11:21 am
Reply with quote

Hello,

One way to get what you want would be to run the 3.12 and save the result to dasd. Then read the result list and write the member names to the file.
Back to top
View user's profile Send private message
APD1

New User


Joined: 18 Feb 2009
Posts: 59
Location: India

PostPosted: Thu Mar 05, 2009 11:24 am
Reply with quote

A bit longer method but will try
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Mar 05, 2009 11:33 am
Reply with quote

The LMTO process option of SUPERC will give you what you need.

O.
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
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 Search two or more word with FILEAID Compuware & Other Tools 15
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top