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
 

 

how to search a string between 1 to 30 columns

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
rameshbabu
Warnings : 1

New User


Joined: 23 May 2005
Posts: 27

PostPosted: Wed Jun 15, 2005 5:13 pm    Post subject: how to search a string between 1 to 30 columns
Reply with quote

hi plse rectify my doubt
i want to search a string between 1 to 30 column instead of 1 to 72 by 3.14
option is there any way to find out either 3.14 nor thru jcl
Back to top
View user's profile Send private message

kvivek

New User


Joined: 09 May 2005
Posts: 51
Location: Singapore

PostPosted: Wed Jun 15, 2005 6:03 pm    Post subject:
Reply with quote

F <Search String> 1 30

Regards,
Vivek
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Wed Jun 15, 2005 6:21 pm    Post subject:
Reply with quote

Thru TSO you can use from command line
Code:
F 'string' 1,30

Thru Search-For Utility you can use the background form and
befor the SRCHFOR you must specify the segments of search as you can see below:
Code:
//SEARCH  EXEC PGM=ISRSUPC,           
//            PARM=(SRCHCMP,           
//            'ANYC')                 
//NEWDD  DD DISP=SHR,DSN=HLDPTE.PROCLIB(FTPTCP)
//OUTDD  DD SYSOUT=(A)                 
//SYSIN  DD *                         
CMPCOLM 1:30,35:80                           
LSTCOLM 1:80                           
SRCHFOR  'string'     


Try to see this link for further details:
Code:
http://www.mainserver.state.mn.us/bookmgr-cgi/bookmgr.exe/handheld/BOOKS/IBMBK.Z4CMDS.ISPZU210.BOOK/CCONTENTS?SHELF=IBMBK.Z4CMDS.EZ2CMZ34.BKSHELF&DN=SC34-4823-01&DT=20010620123826
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Wed Jun 15, 2005 6:34 pm    Post subject:
Reply with quote

Or(is the same that previous)
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/FRAMESET/ISPZU210/CCONTENTS?DT=20010620123826
Back to top
View user's profile Send private message
phil rook

New User


Joined: 25 Nov 2005
Posts: 12
Location: amsterdam

PostPosted: Fri Nov 25, 2005 10:24 pm    Post subject: Re: how to search a string between 1 to 30 columns
Reply with quote

sort 1 30 a = ascending
sort 1 30 d = descending
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
This topic is locked: you cannot edit posts or make replies. Db2 SQL query to convert rows into co... subratarec DB2 5 Thu Nov 17, 2016 4:51 pm
No new posts Comparing Decimal and CHAR columns rakesh17684 DB2 7 Thu Oct 20, 2016 2:33 am
This topic is locked: you cannot edit posts or make replies. Checking wether a string starts from ... sundaram.naveen CLIST & REXX 9 Thu Oct 06, 2016 11:56 am
No new posts Random Password (in string format) ge... ezhavendhan COBOL Programming 10 Mon Aug 29, 2016 3:18 pm
No new posts How to insert a lengthy string havin... vidyaa DB2 7 Thu Aug 25, 2016 5:20 pm


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