<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: BATCH vs. INTERACTIVE EG-SESSION in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/BATCH-vs-INTERACTIVE-EG-SESSION/m-p/401414#M278718</link>
    <description>&lt;P&gt;You can use Proc Optsave for that i.e.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc optsave out=opts;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 05 Oct 2017 15:54:23 GMT</pubDate>
    <dc:creator>ChrisBrooks</dc:creator>
    <dc:date>2017-10-05T15:54:23Z</dc:date>
    <item>
      <title>BATCH vs. INTERACTIVE EG-SESSION</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BATCH-vs-INTERACTIVE-EG-SESSION/m-p/401253#M278715</link>
      <description>&lt;P&gt;Hello Everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I came upon a very curious problem:&lt;/P&gt;&lt;P&gt;I have a code in which I use name literals:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data "dataset mit leerzeichen"n;
set sashelp.class;
"variable mit leerzeichen"n = 1;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now, when I run the above code in a interactive EG-Session, it works perfectly fine, i.e. no errors or warnings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I run the exact same code in Batch-Mode, I get the following ERROR MESSAGE:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: The name variable mit leerzeichen is not a valid SAS name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Obviously, there must exist some differences in BATCH vs. INTERACTIVE EG-SESSION mode. Related to the above issue, what is the difference?&lt;/LI&gt;&lt;LI&gt;Is there a system option, that forces SAS BATCH-MODE to work exactly as in INTERACTIVE EG-SESSION mode?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thanks in advance for any helpful pointing into the direction of solving this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 09:34:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BATCH-vs-INTERACTIVE-EG-SESSION/m-p/401253#M278715</guid>
      <dc:creator>FK1</dc:creator>
      <dc:date>2017-10-05T09:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: BATCH vs. INTERACTIVE EG-SESSION</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BATCH-vs-INTERACTIVE-EG-SESSION/m-p/401266#M278716</link>
      <description>&lt;P&gt;Try putting the following two options statements at the start of your code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options validmemname=extend;
options validvarname=any;

data "dataset mit leerzeichen"n;
set sashelp.class;
"variable mit leerzeichen"n = 1;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I can only assume you're using different autoexecs when running in&amp;nbsp;batch and interactive with one containing the options and one not.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 10:13:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BATCH-vs-INTERACTIVE-EG-SESSION/m-p/401266#M278716</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2017-10-05T10:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: BATCH vs. INTERACTIVE EG-SESSION</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BATCH-vs-INTERACTIVE-EG-SESSION/m-p/401410#M278717</link>
      <description>&lt;P&gt;Hello Mr. Brooks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your advice. It worked!&lt;/P&gt;&lt;P&gt;I do have a follow-up question, however:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know how to output the system options into a SAS data set? I only get them into the LOG, when executing this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC OPTIONS;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;As a workaround one could of course divert the log with PROC PRINTTO:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename divlog "/pathname/logdiverted.txt";

PROC PRINTTO LOG=divlog;
run;

PROC OPTIONS   ;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However, I end up having a file on which I then would have to further work on.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 15:50:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BATCH-vs-INTERACTIVE-EG-SESSION/m-p/401410#M278717</guid>
      <dc:creator>FK1</dc:creator>
      <dc:date>2017-10-05T15:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: BATCH vs. INTERACTIVE EG-SESSION</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BATCH-vs-INTERACTIVE-EG-SESSION/m-p/401414#M278718</link>
      <description>&lt;P&gt;You can use Proc Optsave for that i.e.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc optsave out=opts;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Oct 2017 15:54:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BATCH-vs-INTERACTIVE-EG-SESSION/m-p/401414#M278718</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2017-10-05T15:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: BATCH vs. INTERACTIVE EG-SESSION</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BATCH-vs-INTERACTIVE-EG-SESSION/m-p/401457#M278719</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32246"&gt;@ChrisBrooks&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;You can use Proc Optsave for that i.e.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc optsave out=opts;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;and reload the options with&lt;/P&gt;
&lt;P&gt;Proc optload data=opts;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you need to make option settings temporarily and then restore them (as often as needed).&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 17:29:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BATCH-vs-INTERACTIVE-EG-SESSION/m-p/401457#M278719</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-10-05T17:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: BATCH vs. INTERACTIVE EG-SESSION</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BATCH-vs-INTERACTIVE-EG-SESSION/m-p/401703#M278720</link>
      <description>&lt;P&gt;Thanks everybody for your help! Glad to see, there are so many SAS Specialists &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 11:49:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BATCH-vs-INTERACTIVE-EG-SESSION/m-p/401703#M278720</guid>
      <dc:creator>FK1</dc:creator>
      <dc:date>2017-10-06T11:49:58Z</dc:date>
    </item>
  </channel>
</rss>

