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: 685
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: 743
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 find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts How to find the first monday of the w... abdulrafi COBOL Programming 10 Fri Nov 25, 2016 3:24 pm
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 pm
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am
No new posts Find out a active PGM jpsager JCL & VSAM 10 Fri Oct 07, 2016 4:32 pm


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