Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set the local language of SAS LOG and output (LST/HTML)? #485

Closed
ShuguangSun opened this issue Oct 1, 2022 · 3 comments
Closed

Comments

@ShuguangSun
Copy link
Contributor

As what to do in SAS cfg the "-LOCALE en_US", it can force the SAS LOG and outputs in English, and "-ENCODING UTF-8" can make the encoding of UTF8 in the same session.

How can I do that in saspy? I tried below in saspy configure but it does not work

winlocal = {
    "options" : ["-config", r"C:\Program Files\SASHome\SASFoundation\9.4\nls\u8\sasv9_en.cfg"]
}

Where the LOCAL nad ENCODING are set accordingly in the file "sasv9_en.cfg".

@tomweber-sas
Copy link
Contributor

The IOM access method doesn't have an 'options' key, because IOM doesn't allow overriding startup options. Windows SAS has a sasv9.cfg file in the installation ('C:\Program Files\SASHome\SASFoundation\9.4\sasv9.cfg', by default), where you can specify which nls config to use. So you just provided that there:
image
Only options that can be set after SAS starts up are allowed over IOM, and those you just submit on the options statement. Any startup options must be configured via SAS itself, in it's usual way.

@ShuguangSun
Copy link
Contributor Author

Thanks for the quick response.

@tomweber-sas
Copy link
Contributor

No problem. Hopefully you've set this and you're good to go. I'll close this out, but just let me know if you need anything else!
Thanks,
Tom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants