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

Searching a string


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

New User


Joined: 26 Feb 2007
Posts: 71
Location: bangalore

PostPosted: Tue Feb 24, 2009 10:35 am
Reply with quote

Hi,

I have a PDS which consist of 800 members and i want to know which all the members doesnt have a string present in them.

For Example:

Say the string is OUTDUMP and i want to know which all member doesnot have this string.

Can anyone tell me the command.

I have tried SRCHFOR OUTDUMP but it is not working in my system.
Back to top
View user's profile Send private message
rajulan

New User


Joined: 11 Jan 2008
Posts: 66
Location: India

PostPosted: Tue Feb 24, 2009 10:44 am
Reply with quote

hi,

ispf 3.14 will work. you may have done any mistake ...search the member which has the string you want....then rest of the members in that pds wont have the string you want....

Thanks,
Rajulan.
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: Tue Feb 24, 2009 10:45 am
Reply with quote

Hello,

Quote:
I have tried SRCHFOR OUTDUMP but it is not working in my system.
Do not post "it doesn't work" - that just wastes everyone's time. When something does not work, you need to post what you tried (more completely than "searchfor outdump") - which menu(s) did you use? Which commands, if any? What was the outcome? An error? An abend?

I use searchfor rather often with no problems. . .
Back to top
View user's profile Send private message
deepak.kec

New User


Joined: 26 Feb 2007
Posts: 71
Location: bangalore

PostPosted: Tue Feb 24, 2009 10:47 am
Reply with quote

The solution which u gave wont work. The string is present in so many members as i have checked it. So it will be again a manual search according to your solution as i need to check first which member is not present. I dont want to do that.
Back to top
View user's profile Send private message
deepak.kec

New User


Joined: 26 Feb 2007
Posts: 71
Location: bangalore

PostPosted: Tue Feb 24, 2009 10:50 am
Reply with quote

Hi,

i got the message as "Invalid command". i wanted to make a point that this command doesnt work in the Mainframe system i am using.
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: Tue Feb 24, 2009 11:04 am
Reply with quote

Hello,

Quote:
i wanted to make a point that this command doesnt work in the Mainframe system i am using.
In tso/ispf go to utilities (usually option 3). What is option 13 or so. There should be a SEARCH FOR and a SEARCH FOR Extended. Are these on your system? Try them and post back the outcome.

If you create a list of members that have the OUTDUMP you can compare that list against the full member list and the ones that do not match, do not have OUTDUMP.
Back to top
View user's profile Send private message
Debabrata Pruseth

New User


Joined: 11 Dec 2008
Posts: 59
Location: Pune , India

PostPosted: Thu Feb 26, 2009 4:19 am
Reply with quote

Hi deepak

If you have fileaid installed then you can use fileaid option 3.6 ( SEARCH/UPDATE) to create a list of members that have the OUTDUMP. The advantage over ISPF option is that here you can directly get the member names only leaving aside the individual lines containing the OUTDUMP variable.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Sat Feb 28, 2009 10:18 am
Reply with quote

Quote:
So it will be again a manual search according to your solution as i need to check first which member is not present.

Your automation requires multiple steps:

1. get list of all members
2. get list of members that contain search text using SRCHFOR
3. from list 1, remove the members that are in list 2.
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 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 Search string in job at regular Spool... CLIST & REXX 0
Search our Forums:

Back to Top