<?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: How to suppress global and automatic variables from being written to log in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-suppress-global-and-automatic-variables-from-being/m-p/52669#M11124</link>
    <description>The source2 option did cause a "%put _ALL_;" line to show up in an included macro subroutine that a third party wrote.  This is a large macro process with dozens of macro subroutines and over 1,000 lines of code.&lt;BR /&gt;
&lt;BR /&gt;
Am I correct to assume that "%put _ALL_;" will print automatic and global variables?   The manuals I have don't mention that or the MACROGEN command.

Message was edited by: JMarkW</description>
    <pubDate>Wed, 08 Oct 2008 11:52:49 GMT</pubDate>
    <dc:creator>JMarkW</dc:creator>
    <dc:date>2008-10-08T11:52:49Z</dc:date>
    <item>
      <title>How to suppress global and automatic variables from being written to log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-suppress-global-and-automatic-variables-from-being/m-p/52667#M11122</link>
      <description>I'm working with a high volume macro programming job on Solaris UNIX.   I've been able to suppress unneeded items going to the log except for global and automatic macro variable definitions.    I've done proc options and set every option that appears to be related to the printing of info to the log.&lt;BR /&gt;
&lt;BR /&gt;
Any ideas how to suppress messages like the following?&lt;BR /&gt;
&lt;BR /&gt;
GLOBAL MDATE14 &lt;BR /&gt;
GLOBAL HNAME16 &lt;BR /&gt;
GLOBAL LSDATE19 &lt;BR /&gt;
GLOBAL FILE19 &lt;BR /&gt;
GLOBAL FTYPE19 &lt;BR /&gt;
GLOBAL MDATE23 &lt;BR /&gt;
AUTOMATIC AFDSID 0&lt;BR /&gt;
AUTOMATIC AFDSNAME &lt;BR /&gt;
AUTOMATIC AFLIB &lt;BR /&gt;
AUTOMATIC AFSTR1 &lt;BR /&gt;
AUTOMATIC AFSTR2 &lt;BR /&gt;
AUTOMATIC FSPBDV &lt;BR /&gt;
AUTOMATIC SYSBUFFR &lt;BR /&gt;
AUTOMATIC SYSCC 0&lt;BR /&gt;
AUTOMATIC SYSCHARWIDTH 1&lt;BR /&gt;
AUTOMATIC SYSCMD &lt;BR /&gt;
AUTOMATIC SYSDATE 07OCT08</description>
      <pubDate>Tue, 07 Oct 2008 19:25:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-suppress-global-and-automatic-variables-from-being/m-p/52667#M11122</guid>
      <dc:creator>JMarkW</dc:creator>
      <dc:date>2008-10-07T19:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to suppress global and automatic variables from being written to log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-suppress-global-and-automatic-variables-from-being/m-p/52668#M11123</link>
      <description>I suspect that your SAS program has one or more of the following commands:&lt;BR /&gt;
&lt;BR /&gt;
%PUT _GLOBAL_;&lt;BR /&gt;
&lt;BR /&gt;
%PUT _AUTOMATIC_;&lt;BR /&gt;
&lt;BR /&gt;
If you set the following options, it should be pretty obvious where the code is, relative to other SAS processing:&lt;BR /&gt;
&lt;BR /&gt;
MACRO NOSOURCE SOURCE SOURCE2 MACROGEN SYMBOLGEN MLOGIC %&lt;BR /&gt;
OPTIONS NOSOURCE;&lt;BR /&gt;
&lt;BR /&gt;
Using SAS old-style (SAS 79) macro statements (as opposed to the SAS macro language), the character string "NOSOURCE" will be substituted with the data that follows.  So, if there is any SAS code that turns off SOURCE, you can expect it to be turned back on with maximum SASLOG diagnostics information.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Tue, 07 Oct 2008 20:02:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-suppress-global-and-automatic-variables-from-being/m-p/52668#M11123</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2008-10-07T20:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to suppress global and automatic variables from being written to log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-suppress-global-and-automatic-variables-from-being/m-p/52669#M11124</link>
      <description>The source2 option did cause a "%put _ALL_;" line to show up in an included macro subroutine that a third party wrote.  This is a large macro process with dozens of macro subroutines and over 1,000 lines of code.&lt;BR /&gt;
&lt;BR /&gt;
Am I correct to assume that "%put _ALL_;" will print automatic and global variables?   The manuals I have don't mention that or the MACROGEN command.

Message was edited by: JMarkW</description>
      <pubDate>Wed, 08 Oct 2008 11:52:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-suppress-global-and-automatic-variables-from-being/m-p/52669#M11124</guid>
      <dc:creator>JMarkW</dc:creator>
      <dc:date>2008-10-08T11:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to suppress global and automatic variables from being written to log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-suppress-global-and-automatic-variables-from-being/m-p/52670#M11125</link>
      <description>Here's the SAS 9 Macro Language Doc reference:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/onlinedoc/913/getDoc/en/mcrolref.hlp/a000206943.htm" target="_blank"&gt;http://support.sas.com/onlinedoc/913/getDoc/en/mcrolref.hlp/a000206943.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Run this code:&lt;BR /&gt;
&lt;BR /&gt;
%let z = I am global;&lt;BR /&gt;
%macro x;&lt;BR /&gt;
%let y = I am local;&lt;BR /&gt;
%put _all_;&lt;BR /&gt;
%mend x;&lt;BR /&gt;
%x;&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Wed, 08 Oct 2008 13:20:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-suppress-global-and-automatic-variables-from-being/m-p/52670#M11125</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2008-10-08T13:20:45Z</dc:date>
    </item>
  </channel>
</rss>

