Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts SDSF Command Avtrix CLIST & REXX 4 Fri Sep 30, 2016 11:13 am
No new posts How to find a CICS resource used in C... Arunkumar Chandrasekaran CICS 8 Thu Sep 29, 2016 1:45 pm
No new posts COMPARE command sivatechdrive TSO/ISPF 7 Fri Sep 16, 2016 4:31 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us