IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

To search a string in a particular position in a PS


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
yogeshbabu

New User


Joined: 30 Nov 2005
Posts: 19
Location: India

PostPosted: Thu Mar 23, 2006 2:49 pm
Reply with quote

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
View user's profile Send private message
balajiofcrrcoe

New User


Joined: 07 Jul 2005
Posts: 41
Location: chennai

PostPosted: Thu Mar 23, 2006 3:39 pm
Reply with quote

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
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Thu Mar 23, 2006 6:09 pm
Reply with quote

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
View user's profile Send private message
vidhyanarayanan

New User


Joined: 23 Dec 2005
Posts: 52

PostPosted: Fri Mar 24, 2006 2:11 pm
Reply with quote

hi,
Try SUBSTR( STARTING POSITION:LENGTH)

regards,
vidhya
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
Search our Forums:

Back to Top