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

How to search a string in the range of particular columns.


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

New User


Joined: 09 Oct 2007
Posts: 22
Location: chennai.India

PostPosted: Fri Oct 26, 2007 11:56 am
Reply with quote

I want to search a particular string in all the lines of the dataset. But only in the wanted columns.

i.e i want to search the string only in the column range 4 to 10. It means that even my string is present in other columns, im not bothered, i want my search string to be found only in the 4,5,6,7,8,9,10 th columns only.

Can anyone help on this !
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Fri Oct 26, 2007 12:06 pm
Reply with quote

ISPF help will help,
also reading the manual

anyhow here is a hint

Quote:
f "from_string" 4 10


Quote:
c "from_string" "to_string" 4 10
Back to top
View user's profile Send private message
NAGARJUN CARALAPATI

New User


Joined: 09 Oct 2007
Posts: 22
Location: chennai.India

PostPosted: Fri Oct 26, 2007 12:18 pm
Reply with quote

E.S,

Thank u very much, it worked !!!!!!!!
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Fri Oct 26, 2007 12:19 pm
Reply with quote

Quote:
Thank u very much, it worked !!!!!!!!


Never doubted ! :-)
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Fri Oct 26, 2007 12:37 pm
Reply with quote

You can also use the below mentioned command.

Code:
F ALL 'string' 4 10


This would also display the no of occurences of the string inaddition to the search.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Fri Oct 26, 2007 5:03 pm
Reply with quote

Also, you can pre-set the bounsaries using the BNDS command.

O.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Oct 26, 2007 5:46 pm
Reply with quote

Hi O,

I think, BNDS is a line command & will be active through out the session (for the that profile in which it's used) ? Please let me know.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Fri Oct 26, 2007 6:17 pm
Reply with quote

the only unpleasant issue with bnds is that it must be manually reset
if You forget, You will end up with change/find misleading info
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Oct 29, 2007 1:36 pm
Reply with quote

Yeah this happened to me once..& then I wasted nearly half day just to get rid of the 'stupid' looks os my ISPF screen. (Coz once I shared my RACF ID/password with someone here..I was dumb enough..! icon_redface.gif )
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 2
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts To get the count of rows for every 1 ... DB2 3
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
Search our Forums:

Back to Top