View previous topic :: View next topic
|
Author |
Message |
sasikumar1984
Active User
Joined: 02 Jul 2007 Posts: 109 Location: Chennai - India
|
|
|
|
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 |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
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 |
|
|
sasikumar1984
Active User
Joined: 02 Jul 2007 Posts: 109 Location: Chennai - India
|
|
|
|
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 |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
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 |
|
|
|