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! 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 1192 views
  • 1 like
  • 3 in conversation