View previous topic :: View next topic
|
Author |
Message |
NAGARJUN CARALAPATI
New User
Joined: 09 Oct 2007 Posts: 22 Location: chennai.India
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
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 |
|
|
NAGARJUN CARALAPATI
New User
Joined: 09 Oct 2007 Posts: 22 Location: chennai.India
|
|
|
|
E.S,
Thank u very much, it worked !!!!!!!! |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
Quote: |
Thank u very much, it worked !!!!!!!! |
Never doubted ! :-) |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Also, you can pre-set the bounsaries using the BNDS command.
O. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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..! ) |
|
Back to top |
|
|
|