DATA Step, Macro, Functions and more

compressing a space in text

Accepted Solution Solved
Reply
Contributor
Posts: 26
Accepted Solution

compressing a space in text

Dear all

 

Any suggestions on a simple way to remove the space  in the text 'HEA LTH" (without removing the other appropriate spaces??

 

CHANGES IN HEA LTH; ADVERSE EVENTS;

 

thank you.


Accepted Solutions
Solution
‎06-30-2017 06:32 PM
PROC Star
Posts: 1,760

Re: compressing a space in text

Like this?

X=tranwrd(X,'HEA LTH','HEALTH');

View solution in original post


All Replies
Solution
‎06-30-2017 06:32 PM
PROC Star
Posts: 1,760

Re: compressing a space in text

Like this?

X=tranwrd(X,'HEA LTH','HEALTH');

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 83 views
  • 0 likes
  • 2 in conversation