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
 
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: 757
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 How to insert a value on specific pos... Poha Eater DFSORT/ICETOOL 9 Sun Oct 01, 2017 3:04 am
No new posts Command to find TMEMBER name for a TPIPE Siva NKK Kothamasu IMS DB/DC 0 Wed Aug 16, 2017 6:08 pm
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
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

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