title: How do I get SAS encoding option programmatically?
body: <p>How do I find out the SAS global <code>encoding</code> option programmatically? I can run <code>proc options</code>, and it will give me the answer, but I need to do it from code.</p>
  
  <p>I am hoping for an answer on the lines of "look at the macro symbol &amp;sysencoding", but this might be too much to hope for. I would prefer to avoid fragile things like writing to an external file and re-parsing.</p>