BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
ghassanzghaib
Obsidian | Level 7

Hi,

 

How can I tell what character set (locale) is used in a SAS data file?

 

I have an issue using some SAS datafiles in Tableau. When I connect to the data file and view it in Tableau, some rows are missing. These rows show up in SAS EG. When I create a copy of the SAS data file using proc copy and connect to it with Tableau, the rows appear.

 

Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
SASKiwi
PROC Star

PROC CONTENTS will tell you the encoding (character set) of a SAS dataset:

 

proc contents data = sashelp.class;run;

You will find the SAS NLS Guide helpful in fixing NLS options:

http://documentation.sas.com/?docsetId=nlsref&docsetTarget=n1d2i07lune0dxn1bsah301axr4v.htm&docsetVe...

View solution in original post

1 REPLY 1
SASKiwi
PROC Star

PROC CONTENTS will tell you the encoding (character set) of a SAS dataset:

 

proc contents data = sashelp.class;run;

You will find the SAS NLS Guide helpful in fixing NLS options:

http://documentation.sas.com/?docsetId=nlsref&docsetTarget=n1d2i07lune0dxn1bsah301axr4v.htm&docsetVe...

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—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
  • 1 reply
  • 1191 views
  • 1 like
  • 2 in conversation