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

When I tried to print the values of SAS dataset in HTML form/page, I observed that some non english characters ( e.g. 0000036455 (BSJKK 仙台営業所)) are printed as you see in the attachment . However when I tried to query (e.g. where ID like '0000036455%') the dataset with that value I do not see them at all.

 

What would be the likely cause for this issue? Any help to resolve this? Not sure if this is some junk characters which was displayed in HTML while printing SAS dataset values. However I should see the number (0000036455) atleast in SAS dataset but I could not see. I'm sure that I'm referring the correct dataset as I could see some values in the dataset which was shown in HTML and in those values there is no junk characters appended with the number.

1 ACCEPTED SOLUTION

Accepted Solutions
Ksharp
Super User
Try these three ways:
1)
where strip(ID) like '0000036455%'

2)
where ID like '%0000036455%'

3)
where find(ID,'0000036455')

View solution in original post

4 REPLIES 4
LinusH
Tourmaline | Level 20

Maybe you can try to use the compress function with the W modifier.

Data never sleeps
Kurt_Bremser
Super User

If both the number and the Chinese characters occupy the same column, it seems to me that the number is immediately followed by a blank, so

scan(column,1)

will get you the number without the other stuff.

Ksharp
Super User
Try these three ways:
1)
where strip(ID) like '0000036455%'

2)
where ID like '%0000036455%'

3)
where find(ID,'0000036455')

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 320 views
  • 1 like
  • 4 in conversation