DATA Step, Macro, Functions and more

How to change session encoding dynamically

Accepted Solution Solved
Reply
Contributor
Posts: 20
Accepted Solution

How to change session encoding dynamically

Hello!

 

I am writing sas script which will work in batch. Encoding of SASApp session is UTF8 and all my tables (in Oracle database and SAS Datasets) has UTF8 encoding. BUT I have one compiled macro which can work with WCYRILLIC encoding only (it crashes with error if I use UTF8 as session encoding). This macro doesn't work with my tables, it performs some auxiliary actions.

 

The question is: how could I dynamically change session encoding from UTF8 to WCYRILLIC before the macro invoked and change it back to UTF8 just after it will be executed.


Accepted Solutions
Solution
‎06-12-2016 06:59 AM
Super Contributor
Posts: 408

Re: How to change session encoding dynamically

Hi Dmitry,

 

Unfortunately for you the ENCODING option to set the session encoding cannot be dynamically changed. As per the doc, it is valid only in config files and invocation of SAS.

 

Regards,

- Jan.

View solution in original post


All Replies
Solution
‎06-12-2016 06:59 AM
Super Contributor
Posts: 408

Re: How to change session encoding dynamically

Hi Dmitry,

 

Unfortunately for you the ENCODING option to set the session encoding cannot be dynamically changed. As per the doc, it is valid only in config files and invocation of SAS.

 

Regards,

- Jan.

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 474 views
  • 1 like
  • 2 in conversation