View previous topic :: View next topic
|
Author |
Message |
sashi
New User
Joined: 14 Sep 2005 Posts: 54 Location: Chennai
|
|
|
|
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 |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
Are you sure that '.' is a period or is it an undisplayable character? |
|
Back to top |
|
|
sashi
New User
Joined: 14 Sep 2005 Posts: 54 Location: Chennai
|
|
|
|
Craq Giegerich wrote: |
Are you sure that '.' is a period or is it an undisplayable character? |
its period only... |
|
Back to top |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
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 |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Dear Sir!
Have a closer look at the string/unstring function using the count and pointer options. |
|
Back to top |
|
|
|