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
 
To search a string in a particular position in a PS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: To search a string in a particular position in a PS
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    Post subject: Re: To search a string in a particular position in a PS
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: 1452
Location: Chicago, IL

PostPosted: Thu Mar 23, 2006 6:09 pm    Post subject: Re: To search a string in a particular position in a PS
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Find & Replace string in CA-SORT mrgnndhmk CA Products 1 Fri Mar 30, 2018 12:58 am
No new posts can we hardcode a value in db2 load c... ram_vizag DB2 2 Wed Feb 28, 2018 11:04 pm
No new posts Find a string in PS file opened in br... mukkas CLIST & REXX 3 Sat Feb 24, 2018 2:15 pm
No new posts Utility for search operation Gopalakrishna551 TSO/ISPF 11 Wed Jan 03, 2018 11:07 am
No new posts TBSARG - Deleting the search criteria... ISPFHerc TSO/ISPF 6 Thu Dec 14, 2017 8:18 am

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