BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
abx
Fluorite | Level 6 abx
Fluorite | Level 6

Hi... 

I would like to know on how to add in this symbol > " into the code below:

 

NAME1=compbl(compress(strip(upcase(NAME)),"ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890`~!@#$%^&*()-_=+\|[]{};:"',.<>?/ ","kis"))

 

Currently, encounter this error code (ERROR 388-185: Expecting an arithmetic operator.) due to the red font item. 

Open to other suggest on how to improve the code. Many thanks. 

1 ACCEPTED SOLUTION

Accepted Solutions
4 REPLIES 4
FreelanceReinh
Jade | Level 19

Hi @abx,

 

Just duplicate it: ""

 

abx
Fluorite | Level 6 abx
Fluorite | Level 6
thanks for the tips too. 🙂
Ksharp
Super User
Using collate operator ?
"ABCDEFGHIJ........<>?/" || ' " '
abx
Fluorite | Level 6 abx
Fluorite | Level 6

Thanks for the tips! 

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 684 views
  • 1 like
  • 3 in conversation