<?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: show AUTOEXEC and initial value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/show-AUTOEXEC-and-initial-value/m-p/396096#M95590</link>
    <description>&lt;P&gt;the option echoauto shows the statements in the autoexec.sas program&lt;/P&gt;&lt;P&gt;otherwise all you get is this message:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;NOTE: AUTOEXEC processing beginning; file is C:\temp\sas-c-temp\autoexec.sas.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my setup for Windows DOS batch programs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;&amp;nbsp;&lt;/CODE&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*name: autoexec.sas;&lt;BR /&gt;
title1 'My Project';

filename project '.';*here;
libname library '..\sas7b';
options linesize=max pagesize=max;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a paper with the list of global statements to hide in the autoexec:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.lexjansen.com/mwsug/2015/BB/MWSUG-2015-BB-10.pdf" target="_self"&gt;An Autoexec Companion, Allocating Location Names during Startup&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;next: a program which does next to nothing;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*name: autoexec-test.sas;&lt;BR /&gt;filename project list;*unlike libname which does list when allocated;
%put _global_;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the option echoauto works like source2 on an %include:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%include 'autoexec.sas'/source2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;rem name: autoexec-test.bat
sas autoexec-test -echoauto

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hth&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ron Fehd&amp;nbsp; formerly (MVS or z/OS), now &lt;A href="http://www.sascommunity.org/wiki/Batch_processing_under_Windows" target="_self"&gt;Batch_processing_under_Windows&lt;/A&gt; maven&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Sep 2017 20:44:31 GMT</pubDate>
    <dc:creator>Ron_MacroMaven</dc:creator>
    <dc:date>2017-09-14T20:44:31Z</dc:date>
    <item>
      <title>show AUTOEXEC and initial value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/show-AUTOEXEC-and-initial-value/m-p/395820#M95526</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to check what is the AUTOEXEC defination for the current SAS?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also how to check initial of the SAS session?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 00:09:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/show-AUTOEXEC-and-initial-value/m-p/395820#M95526</guid>
      <dc:creator>GeorgeSAS</dc:creator>
      <dc:date>2017-09-14T00:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: show AUTOEXEC and initial value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/show-AUTOEXEC-and-initial-value/m-p/395822#M95528</link>
      <description>&lt;P&gt;PROC OPTIONS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lesysoptsref/69799/HTML/default/viewer.htm#n0dtjifbb1ewinn1ottn5051g9yi.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lesysoptsref/69799/HTML/default/viewer.htm#n0dtjifbb1ewinn1ottn5051g9yi.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 00:16:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/show-AUTOEXEC-and-initial-value/m-p/395822#M95528</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-09-14T00:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: show AUTOEXEC and initial value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/show-AUTOEXEC-and-initial-value/m-p/395823#M95529</link>
      <description>&lt;P&gt;This will give you the location of the autoexec file for the current session&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc options option=autoexec;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can then read this in any text editor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for the second part of your question - the initial what?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 00:16:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/show-AUTOEXEC-and-initial-value/m-p/395823#M95529</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2017-09-14T00:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: show AUTOEXEC and initial value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/show-AUTOEXEC-and-initial-value/m-p/395825#M95530</link>
      <description>&lt;P&gt;You&amp;nbsp;might start with:&lt;/P&gt;
&lt;PRE&gt;%put %sysfunc(getoption(autoexec));&lt;/PRE&gt;
&lt;P&gt;If that returns autoexec.sas, you might still need to look around to find which autoexec.sas file was read (there are rules for where SAS searches).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What do you mean by "check initial of the SAS session"?&amp;nbsp; Do you mean version?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put &amp;amp;sysvlong;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Sep 2017 00:19:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/show-AUTOEXEC-and-initial-value/m-p/395825#M95530</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2017-09-14T00:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: show AUTOEXEC and initial value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/show-AUTOEXEC-and-initial-value/m-p/395855#M95541</link>
      <description>&lt;P&gt;Have a look at the GETOPTION function, it can return different information like:&lt;/P&gt;
&lt;H3 id="p1fse4qf20df0xn10hb9yvse4oul" class="xis-title"&gt;Return Value Options&lt;/H3&gt;
&lt;DIV id="n0fzwhu7gokafln14zsm1k3vmkm1" class="xis-argDescriptionPair"&gt;
&lt;H4 class="xis-argument"&gt;DEFAULTVALUE&lt;/H4&gt;
&lt;DIV class="xis-argumentDescription"&gt;
&lt;P class="xis-paraSimpleFirst"&gt;returns the default option value.&lt;/P&gt;
&lt;TABLE class="xis-summary"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="xis-restriction"&gt;Restriction&lt;/TD&gt;
&lt;TD class="xis-summaryText"&gt;DEFAULTVALUE is valid only for SAS system options. SAS issues a warning message when the DEFAULTVALUE option is specified and &lt;SPAN class="xis-userSuppliedValue"&gt;option-name&lt;/SPAN&gt; is a graphics option.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="n1rpby8y1gw4qan11lidovvs9fbx" class="xis-argDescriptionPair"&gt;
&lt;H4 class="xis-argument"&gt;HOWSCOPE&lt;/H4&gt;
&lt;DIV class="xis-argumentDescription"&gt;
&lt;P class="xis-paraSimpleFirst"&gt;returns a character string that specifies the scope of an option.&lt;/P&gt;
&lt;TABLE class="xis-summary"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="xis-restriction"&gt;Restriction&lt;/TD&gt;
&lt;TD class="xis-summaryText"&gt;HOWSCOPE is valid only for SAS system options. SAS issues a warning message when the HOWSCOPE option is specified and &lt;SPAN class="xis-userSuppliedValue"&gt;option-name&lt;/SPAN&gt; is a graphics option.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="p042e130tmbf9cn1m99ysc6k1r2z" class="xis-argDescriptionPair"&gt;
&lt;H4 class="xis-argument"&gt;HOWSET&lt;/H4&gt;
&lt;DIV class="xis-argumentDescription"&gt;
&lt;P class="xis-paraSimpleFirst"&gt;returns a character string that specifies how an option value was set.&lt;/P&gt;
&lt;TABLE class="xis-summary"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="xis-restriction"&gt;Restriction&lt;/TD&gt;
&lt;TD class="xis-summaryText"&gt;HOWSET is valid only for SAS system options. SAS issues a warning message when the HOWSET option is specified and &lt;SPAN class="xis-userSuppliedValue"&gt;option-name&lt;/SPAN&gt; is a graphics option.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="n0ch1houe2lwckn143wzosnlc3bn" class="xis-argDescriptionPair"&gt;
&lt;H4 class="xis-argument"&gt;STARTUPVALUE&lt;/H4&gt;
&lt;DIV class="xis-argumentDescription"&gt;
&lt;P class="xis-paraSimpleFirst"&gt;returns the system option value that was used to start SAS either on the command line or in a configuration file.&lt;/P&gt;
&lt;TABLE class="xis-summary"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="xis-restriction"&gt;Restriction&lt;/TD&gt;
&lt;TD class="xis-summaryText"&gt;STARTUPVALUE is valid only for SAS system options. SAS issues a warning message when the STARTUPVALUE option is specified and &lt;SPAN class="xis-userSuppliedValue"&gt;option-name&lt;/SPAN&gt; is a graphics option.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 06:50:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/show-AUTOEXEC-and-initial-value/m-p/395855#M95541</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2017-09-14T06:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: show AUTOEXEC and initial value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/show-AUTOEXEC-and-initial-value/m-p/396096#M95590</link>
      <description>&lt;P&gt;the option echoauto shows the statements in the autoexec.sas program&lt;/P&gt;&lt;P&gt;otherwise all you get is this message:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;NOTE: AUTOEXEC processing beginning; file is C:\temp\sas-c-temp\autoexec.sas.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my setup for Windows DOS batch programs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;&amp;nbsp;&lt;/CODE&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*name: autoexec.sas;&lt;BR /&gt;
title1 'My Project';

filename project '.';*here;
libname library '..\sas7b';
options linesize=max pagesize=max;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a paper with the list of global statements to hide in the autoexec:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.lexjansen.com/mwsug/2015/BB/MWSUG-2015-BB-10.pdf" target="_self"&gt;An Autoexec Companion, Allocating Location Names during Startup&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;next: a program which does next to nothing;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*name: autoexec-test.sas;&lt;BR /&gt;filename project list;*unlike libname which does list when allocated;
%put _global_;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the option echoauto works like source2 on an %include:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%include 'autoexec.sas'/source2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;rem name: autoexec-test.bat
sas autoexec-test -echoauto

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hth&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ron Fehd&amp;nbsp; formerly (MVS or z/OS), now &lt;A href="http://www.sascommunity.org/wiki/Batch_processing_under_Windows" target="_self"&gt;Batch_processing_under_Windows&lt;/A&gt; maven&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 20:44:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/show-AUTOEXEC-and-initial-value/m-p/396096#M95590</guid>
      <dc:creator>Ron_MacroMaven</dc:creator>
      <dc:date>2017-09-14T20:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: show AUTOEXEC and initial value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/show-AUTOEXEC-and-initial-value/m-p/396504#M95743</link>
      <description>&lt;P&gt;Hello Ron,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May I ask you submit SAS batch job&amp;nbsp;in PC or windows server?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 22:41:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/show-AUTOEXEC-and-initial-value/m-p/396504#M95743</guid>
      <dc:creator>GeorgeSAS</dc:creator>
      <dc:date>2017-09-15T22:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: show AUTOEXEC and initial value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/show-AUTOEXEC-and-initial-value/m-p/396987#M95907</link>
      <description>my programs and data were on a server&lt;BR /&gt;&lt;BR /&gt;I had PC-SAS on each of the computers that I used to access those programs.&lt;BR /&gt;&lt;BR /&gt;I neglected to show my file sas.cmd&lt;BR /&gt;&lt;BR /&gt;rem: sas.cmd&lt;BR /&gt;call "C:\...\SASFoundation\9.4\sas.exe" %*&lt;BR /&gt;&lt;BR /&gt;where %* is the DOS command for "pass all command-line options"&lt;BR /&gt;&lt;BR /&gt;you may need sasv9.cfg&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;Ron&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Sep 2017 22:02:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/show-AUTOEXEC-and-initial-value/m-p/396987#M95907</guid>
      <dc:creator>Ron_MacroMaven</dc:creator>
      <dc:date>2017-09-18T22:02:59Z</dc:date>
    </item>
  </channel>
</rss>

