Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Replace all occurences of '

Former Member
0 Likes
735

Hi gurus,

I need to process the format of a number, eliminating the notation for thousands. The notation for thousand for one country is like that 6'120 , I need to convert this number to 6120.

Until now the elimination of the thousand notation was done with the replace function, like:

REPLACE ALL OCCURRENCES OF '.' IN strtemp WITH ''.

now i can't use this sentence, an error is displayed with this kind of sentence:

REPLACE ALL OCCURRENCES OF ''' IN strtemp WITH ''.

I highly appreciate some idea to solve this issue.

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
705

Use double single quotes ('') to escape.

REPLACE ALL OCCURRENCES OF '''' IN strtemp WITH ''.

4 REPLIES 4
Read only

Former Member
0 Likes
706

Use double single quotes ('') to escape.

REPLACE ALL OCCURRENCES OF '''' IN strtemp WITH ''.

Read only

Former Member
0 Likes
705

write this ... '''' <-- should be 4 ' s

REPLACE ALL OCCURRENCES OF '''' IN strtemp WITH ''.

Read only

Former Member
0 Likes
705

do this way,


data : v_number(10).

v_number = '6''1''20'.
translate v_number using ''' '.
condense v_number no-gaps.

write : v_number. 

Read only

Former Member
0 Likes
705

Hi,

You can do as below:


REPLACE ALL OCCURRENCES OF '''' IN strtemp WITH ''.

Thanks,

Sriram Ponna.