Hi,
Currently sas encoding option has been retrieved from the server setting as latin9. I want to utilise latin1 for one particular SAS job ( either in SAS DI or SAS EG). So before starting the actual code, I have given option encoding = wlatin1 but it throws me a warning message.
SAS option ENCODING is valid only at startup of the SAS System. The SAS option is ignored.
How to use different encoding standard for particular one job or session. Please let me know.
The best way to use the encoding option CVP at the time when you create the library as below
libname getdata cvp '~path of datasets';
@Jagadishkatam latin1 and latin9 are single-byte character sets.
@helannivas88 wrote:
Hi,
Currently sas encoding option has been retrieved from the server setting as latin9. I want to utilise latin1 for one particular SAS job ( either in SAS DI or SAS EG). So before starting the actual code, I have given option encoding = wlatin1 but it throws me a warning message.
SAS option ENCODING is valid only at startup of the SAS System. The SAS option is ignored.
How to use different encoding standard for particular one job or session. Please let me know.
Sorry, but changing the sessions' encoding is only possible by using the option in a config-file, when using EG or DI-Studio, meaning that you can't use code executed in a client to change the encoding of the already running session.
You can't change the encoding after the session is started, but you can use libname options INENCODING= and OUTENCODING= and dataset option ENCODING=.
I don't know if DI allows setting SAS session startup parameters.
[Edited for typo. Sorry]
No...( encoding=any ) did not help either.
@helannivas88 wrote:
Hi,
Currently sas encoding option has been retrieved from the server setting as latin9. I want to utilise latin1 for one particular SAS job ( either in SAS DI or SAS EG). So before starting the actual code, I have given option encoding = wlatin1 but it throws me a warning message.
SAS option ENCODING is valid only at startup of the SAS System. The SAS option is ignored.
How to use different encoding standard for particular one job or session. Please let me know.
Do you really need to change the session encoding for that? Why not just change the encoding used for the files you are reading/writing?
Are there some specific characters that SAS cannot transcode between the two that is appearing in your data?
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.