Dear community,
as I am not having access to SAS 9.4 anymore I am trying my best with SAS Studio. Before I have worked on a Windows PC and I am trying to make it work on my macbook now.
After quite some time, I just managed to SAS read in my excel sheet - yay!
But now I am getting this error message for an easy command as proc print and I really have no clue what could be the Problem?
proc print
data=pms.datensatz_PMS;
run;
ERROR: Invalid characters were present in the data.
Thank you!
"as I am not having access to SAS 9.4 anymore I am trying my best with SAS Studio."
Are you using SAS Viya instead of 9.4? If so, the default SAS encoding for SAS Viya is UTF-8. The ASCII characters (7-bit) are represented as one byte in UTF-8. All other characters must be represented as more than one byte.
Some software applications will substitute typographical characters for the character you type at the keyboard. For example, the apostrophe may be replaced by a left or right quote, depending on the context. The minus sign may be converted to a longer dash. Other substitutions are common. The substituted characters are not ASCII characters.
Accented characters and special characters, such as the plus-minus (±), are available as a single-byte when the SAS session encoding is a single-byte native encoding, such as WLATIN1. However, any characters that are not English letters, numbers, and ASCII punctuation also must be represented as more than one byte.
Do you have a FILENAME statement that references your Excel sheet? If so, what does that look like?
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!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.