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

Search in Command line itself..


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

Active User


Joined: 02 Jul 2007
Posts: 109
Location: Chennai - India

PostPosted: Mon Dec 31, 2007 7:43 am
Reply with quote

Hi Guys,

when we are in view/edit mode in a dataset, we can search using a key in a particular position.

Eg: f 'abc' 12

Here i am searching value 'abc' that starts at 12 th position. Now i have the following questions.

1) If i want multiple keys search means, how can i do??? like i want find 'abc' or 'xyz' that starts in 12 th position.

2) If i want search with many combnations in the same record, how can i ??? Like if i want search 'abc' in 12 th position and 'sasi' in 20 th position, so i must get a record where 'abs' starts at 12 th position and in same record 'sasi' starts at 20th position... how can i do it???

3) If i want get a record where 'abc' starts at 12 th position or '123' presents in 25 th position. How can i achieve in TSO command itself???

Hope i explained my requirements properly, if not please let me know to provide more details...

Advance Happy New year to U all....

Regards,
Sasikumar.K
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Mon Dec 31, 2007 10:23 am
Reply with quote

Hi,

You didn't say what you ultimately want to do w/the data you find. But I can ans the ques as asked:

NOTE!!!! For all ans, enter member/file in VIEW mode.

1) x all;f all 12 abc;f all 12 xyz
2) x all;f all 12 abc;del all x;x all;f all sasi 20
3) Not sure I understand???
Back to top
View user's profile Send private message
sasikumar1984

Active User


Joined: 02 Jul 2007
Posts: 109
Location: Chennai - India

PostPosted: Mon Dec 31, 2007 11:28 am
Reply with quote

Hi mmwife,

thanks for ur quick reply..

i just wanted to find records with my inputs. thats it.. once i get the record, i do something else which is purely for calculation.

My 3rd question is - I want find a record either 'abc' starts in 12th postion or 'xyz' starts in 25 th position. So i need records only having either 'abc' in 12 th postion or 'xyz' in 25 th position.

Hope i gave required info..

Regards,
Sasikumar.K
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Mon Dec 31, 2007 12:23 pm
Reply with quote

Sasi,
Quote:
My 3rd question is - I want find a record either 'abc' starts in 12th postion or 'xyz' starts in 25 th position. So i need records only having either 'abc' in 12 th postion or 'xyz' in 25 th position.

mmwife's reply (point 1) should suffice your req.
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 RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Routing command Address SDSF to other... TSO/ISPF 2
Search our Forums:

Back to Top