Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Search in Command line itself..

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Search in Command line itself..
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    Post subject:
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    Post subject: Hi
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: 1439
Location: Bangalore,India

PostPosted: Mon Dec 31, 2007 12:23 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts HEX value search in a DB2 query maxsubrat DB2 2 Wed Oct 04, 2017 3:04 pm
No new posts MQ command in option 6 of ISPF! Vignesh Sid All Other Mainframe Topics 3 Tue Sep 26, 2017 6:01 pm
No new posts Search for a string in many PDS KARTHIGADEVI CLIST & REXX 5 Fri Sep 08, 2017 2:32 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us