View previous topic :: View next topic
|
Author |
Message |
yogeshbabu
New User
Joined: 30 Nov 2005 Posts: 19 Location: India
|
|
|
|
Hi all ,
Is there any utility avaiable to search for a string in a given position?
we can use ISRSUPC for searching a string is there any way to give the positon of the string in a PS?
Is there someother way of acheiving this requirement?
Thanks & Regards,
Yogesh |
|
Back to top |
|
|
balajiofcrrcoe
New User
Joined: 07 Jul 2005 Posts: 41 Location: chennai
|
|
|
|
Hi,
yes you can search within a position for a string
//SEARCH EXEC PGM=ISRSUPC,
// PARM='SRCHCMP,ANYC'
//NEWDD DD DISP=SHR,DSN=your.fileto.besearched
//OUTDD DD DISP=SHR,DSN=your.listing.file
//SYSIN DD *
CMPCOLM 5:72
SRCHFOR 'string to be searched'
here 5 is the starting position and 72 is the end positon.
let me know in case of any clarifcations and in case if you find any other way.
regards |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Yogesh wrote.
Quote: |
Is there someother way of acheiving this requirement? |
Open the dataset in BROWSE mode & at the command prompt type
Code: |
Command ===> F <string> L
where L is the column# string starts from |
Regards,
Priyesh. |
|
Back to top |
|
|
vidhyanarayanan
New User
Joined: 23 Dec 2005 Posts: 52
|
|
|
|
hi,
Try SUBSTR( STARTING POSITION:LENGTH)
regards,
vidhya |
|
Back to top |
|
|
|