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
 

 

Searching a string in selected members of the loadlib

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

New User


Joined: 11 Aug 2009
Posts: 3
Location: Chennai, India

PostPosted: Tue Aug 11, 2009 8:40 pm    Post subject: Searching a string in selected members of the loadlib
Reply with quote

Hi ...

I have following requirement :

1. REXX program should take follwing inputs from user
a) Loadlib name b)member list c) string to be found out

2. Then it should search for that string in specified members.

3. A report should be generated to with member names in which string found & member names in which string is not found.

Can anybody guide in this regard....
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Tue Aug 11, 2009 8:42 pm    Post subject: Reply to: Searching a string in selected members of the load
Reply with quote

what is wrong in using ISPF searchfor ???

why write tools for something that is already available ???
Back to top
View user's profile Send private message
Yogi123

New User


Joined: 11 Aug 2009
Posts: 3
Location: Chennai, India

PostPosted: Tue Aug 11, 2009 8:59 pm    Post subject: Reply to: Searching a string in selected members of the load
Reply with quote

Hi....

ISPF searchfor can be used,

but I want report for all members for which string is NOT found also....that we dont get in ISPF searchfor .

I would be having some more than 400 members in the PDS, so it is not possible to check manually in the report generated from searchfor utility

Can we somehow capture o/p from searchfor utility & create a report ?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Tue Aug 11, 2009 9:08 pm    Post subject: Reply to: Searching a string in selected members of the load
Reply with quote

yes
Back to top
View user's profile Send private message
Yogi123

New User


Joined: 11 Aug 2009
Posts: 3
Location: Chennai, India

PostPosted: Wed Aug 12, 2009 9:55 am    Post subject: Reply to: Searching a string in selected members of the load
Reply with quote

Can u plz tell me how can we custamise the o/p of searchfor utility...?

Do we need to run utility in background / foreground ...?

It would be gr8, if u put a sample code for this.....
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 Aug 12, 2009 11:14 am    Post subject:
Reply with quote

1) Please use the correct English language and not childish text-talk
2) Please DO NOT ask for code without offering your own for comment / correction.

Going on what Enrico has mentioned, using searchfor you can find the members with the string, so by simply listing the directory of all of the PDS members (Many examples in the REXX forum) you can cross reference them and remove those with the string leaving only those without.

Please feel free to post any problems encountered with YOUR code.

However code will be readily available upon receipt of my current daily rate - 750 euro.
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 401
Location: Mumbai

PostPosted: Wed Aug 12, 2009 1:34 pm    Post subject: Reply to: Searching a string in selected members of the load
Reply with quote

the srchfor command is nothing more than superc (isrsupc). See the ispf manuals for that info or search the web for examples. the listing lists both found and not-found members
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 Could we identify the called modules ... elixir1986 COBOL Programming 5 Fri Jul 14, 2017 1:53 am
No new posts Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
No new posts Copying Panvalet members to PDS LOGESHWARAN K CA Products 4 Mon Mar 06, 2017 10:45 am
No new posts Replacing same string with different ... vickey_dw DFSORT/ICETOOL 6 Wed Feb 22, 2017 10:44 pm
No new posts Count Trailing Spaces in variable str... Virendra Shambharkar SYNCSORT 10 Thu Feb 02, 2017 12:23 pm


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