Application Development 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: 

Repacing COMMA with space in a string

former_member671224
Participant
0 Kudos

Hi,

I need to replace the comma ( , ) with space ( ) in a string. the space should not be condensed. Can anyone tell me how to do it.

Its very urgent.

Regards,

Amal

1 ACCEPTED SOLUTION

ferry_lianto
Active Contributor
0 Kudos

Hi,

Please try this.


TRANSLATE STRING USING ', '.

Regards,

Ferry Lianto

3 REPLIES 3

ferry_lianto
Active Contributor
0 Kudos

Hi,

Please try this.


TRANSLATE STRING USING ', '.

Regards,

Ferry Lianto

former_member583013
Active Contributor
0 Kudos

DATA: TEXT TYPE STRING.

TEXT = 'Hello,World'.

REPLACE ',' WITH SPACE INTO TEXT.

WRITE: TEXT.

Greetings,

Blag.

0 Kudos

Friends,

Thanks for your response. It has been solved using

TRANSLATE string USING ', '.

Regards,

Amal

Message was edited by:

Amal