<?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 How to view SAS Studio autoexec log ? in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/How-to-view-SAS-Studio-autoexec-log/m-p/506214#M6419</link>
    <description>&lt;P&gt;I would like to see the results of the autoexec log in SAS Studio.&amp;nbsp; My normal autoexec file in SAS Studio simply looks like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%include "/folder/location/my_real_autoexec.sas";&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I thought I'd be sneaky and just wrap it in a "proc printto" to redirect the log like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc printto log="~/autoexec.log";
%include "/folder/location/my_real_autoexec.sas";
proc printto;run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It created the file ~/autoexec.log, but when I open it, it only contains the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;NOTE: PROCEDURE PRINTTO used (Total process time):
      real time           0.02 seconds
      cpu time            0.02 seconds&lt;/PRE&gt;
&lt;P&gt;Is there a place I can see the autoexec log somewhere else?&amp;nbsp; A configuration option I can specify somewhere? Or a better way to use proc printto?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT - Just to be clear, I want to see what GLOBAL/AUTOMATIC macro variables are available at the time autoexec runs vs at the time you can submit code manually.&amp;nbsp; So I can't use the 'run' feature that is supplied within SAS Studio.&lt;/P&gt;</description>
    <pubDate>Sat, 20 Oct 2018 09:09:24 GMT</pubDate>
    <dc:creator>RobP</dc:creator>
    <dc:date>2018-10-20T09:09:24Z</dc:date>
    <item>
      <title>How to view SAS Studio autoexec log ?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-view-SAS-Studio-autoexec-log/m-p/506214#M6419</link>
      <description>&lt;P&gt;I would like to see the results of the autoexec log in SAS Studio.&amp;nbsp; My normal autoexec file in SAS Studio simply looks like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%include "/folder/location/my_real_autoexec.sas";&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I thought I'd be sneaky and just wrap it in a "proc printto" to redirect the log like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc printto log="~/autoexec.log";
%include "/folder/location/my_real_autoexec.sas";
proc printto;run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It created the file ~/autoexec.log, but when I open it, it only contains the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;NOTE: PROCEDURE PRINTTO used (Total process time):
      real time           0.02 seconds
      cpu time            0.02 seconds&lt;/PRE&gt;
&lt;P&gt;Is there a place I can see the autoexec log somewhere else?&amp;nbsp; A configuration option I can specify somewhere? Or a better way to use proc printto?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT - Just to be clear, I want to see what GLOBAL/AUTOMATIC macro variables are available at the time autoexec runs vs at the time you can submit code manually.&amp;nbsp; So I can't use the 'run' feature that is supplied within SAS Studio.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Oct 2018 09:09:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-view-SAS-Studio-autoexec-log/m-p/506214#M6419</guid>
      <dc:creator>RobP</dc:creator>
      <dc:date>2018-10-20T09:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to view SAS Studio autoexec log ?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-view-SAS-Studio-autoexec-log/m-p/506225#M6421</link>
      <description>&lt;P&gt;If you want to see the source for your included file then either set the SOURCE2 option or add the /SOURCE option to the %INCLUDE statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%include "/folder/location/my_real_autoexec.sas" / source;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 20 Oct 2018 14:03:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-view-SAS-Studio-autoexec-log/m-p/506225#M6421</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-10-20T14:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to view SAS Studio autoexec log ?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-view-SAS-Studio-autoexec-log/m-p/506498#M6430</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/21480"&gt;@RobP&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I would like to see the results of the autoexec log in SAS Studio.&amp;nbsp; My normal autoexec file in SAS Studio simply looks like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%include "/folder/location/my_real_autoexec.sas";&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I thought I'd be sneaky and just wrap it in a "proc printto" to redirect the log like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc printto log="~/autoexec.log";
%include "/folder/location/my_real_autoexec.sas";
proc printto;run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It created the file ~/autoexec.log, but when I open it, it only contains the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;NOTE: PROCEDURE PRINTTO used (Total process time):
      real time           0.02 seconds
      cpu time            0.02 seconds&lt;/PRE&gt;
&lt;P&gt;Is there a place I can see the autoexec log somewhere else?&amp;nbsp; A configuration option I can specify somewhere? Or a better way to use proc printto?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT - Just to be clear, I want to see what GLOBAL/AUTOMATIC macro variables are available at the time autoexec runs vs at the time you can submit code manually.&amp;nbsp; So I can't use the 'run' feature that is supplied within SAS Studio.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You might look into the options for the %PUT statement also. You can specify lists of variables such as _all_ ,&amp;nbsp;_automatic_ , &amp;nbsp;_global_ , &amp;nbsp;_user_ , _readonly_ , _writable_&amp;nbsp; and/ or &amp;nbsp;_local_ (though _local_ generally doesn't mean much outside of a running macro).&lt;/P&gt;
&lt;P&gt;%put _global_;&lt;/P&gt;
&lt;P&gt;will show the current list of defined global macro variables and their values&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 16:15:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-view-SAS-Studio-autoexec-log/m-p/506498#M6430</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-10-22T16:15:38Z</dc:date>
    </item>
  </channel>
</rss>

