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

Searching a string in selected members of the loadlib


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Aug 11, 2009 8:42 pm
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Aug 11, 2009 9:08 pm
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
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: 8797
Location: Welsh Wales

PostPosted: Wed Aug 12, 2009 11:14 am
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: 400
Location: Mumbai

PostPosted: Wed Aug 12, 2009 1:34 pm
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 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 Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts file manager is doing string conversion IBM Tools 3
No new posts Duplicate several members of/in one l... JCL & VSAM 7
Search our Forums:

Back to Top