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
 

 

More Function to find position of particular character n str

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
sashi

New User


Joined: 14 Sep 2005
Posts: 54
Location: Chennai

PostPosted: Thu Apr 15, 2010 8:10 pm    Post subject: Re: Function to find position of particular character n stri
Reply with quote

In Function to find position of particular character n string?
kothai wrote:
Hi,

I just want to know whether there is any predefined function in COBOL to find a position of particular character in a string.

Eg MAINFRAM.ES

In this string, i want to find the position of dot character. Then i have to remove the '.ES' from the string...



how to replaces 'ES' with some other word like 'SSS'???
Back to top
View user's profile Send private message

Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Thu Apr 15, 2010 8:20 pm    Post subject:
Reply with quote

Are you sure that '.' is a period or is it an undisplayable character?
Back to top
View user's profile Send private message
sashi

New User


Joined: 14 Sep 2005
Posts: 54
Location: Chennai

PostPosted: Thu Apr 15, 2010 8:38 pm    Post subject:
Reply with quote

Craq Giegerich wrote:
Are you sure that '.' is a period or is it an undisplayable character?

its period only...
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 686
Location: Earth

PostPosted: Thu Apr 15, 2010 9:41 pm    Post subject:
Reply with quote

Look in the manuals for INSPECT WITH TALLYING option.
I don't think there is any intrinsic function to fulfil your requirement.
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 755
Location: Germany

PostPosted: Thu Apr 15, 2010 10:02 pm    Post subject:
Reply with quote

Dear Sir!

Have a closer look at the string/unstring function using the count and pointer options.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts What is the Extract Function in JCL dharmaraok JCL & VSAM 3 Wed Jun 14, 2017 9:12 am
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts the use of 'B3'x character in a panel Pedro TSO/ISPF 1 Thu Feb 16, 2017 3:09 am
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm


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