utf 8 - How to change SAS session encoding dynamically -


i writing sas script work in batch. encoding of sasapp session utf8 , tables (in oracle database , sas datasets) has utf8 encoding. have 1 compiled macro can work wcyrillic encoding (it crashes error if use utf8 session encoding). macro doesn't work tables, performs auxiliary actions.

the question is: how dynamically change session encoding utf8 wcyrillic before macro invoked , change utf8 after executed.

i don't think there way change session-level encoding option. documentation page indicates can set when session first started:

valid in: configuration file, sas invocation

i think best can override session encoding option every individual encoding-dependent statement in problematic macro - i.e. specifying encoding=wcyrrlic on every file, infile, filename, %include , ods statement generated macro.

alternatively, if have sas/connect write code signs on session encoding=wcyrillic specified in invocation options run macro, dumping output parent session.


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -