<?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: Suppress writing composite index to log in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Suppress-writing-composite-index-to-log/m-p/718108#M222169</link>
    <description>&lt;P&gt;&lt;EM&gt;&amp;gt; Is there any way to prevent SAS from printing these index variables?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This does it:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename LOGFILE temp;
proc printto log=LOGFILE; run;
proc print; by I; run;
proc printto log=log; run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Feb 2021 03:36:25 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2021-02-10T03:36:25Z</dc:date>
    <item>
      <title>Suppress writing composite index to log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Suppress-writing-composite-index-to-log/m-p/718101#M222163</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a SAS dataset with a composite index.&amp;nbsp; I'm running a SAS procedure (StdRate) over it many times, and I'm looking to suppress information being written to the log so that it doesn't fill it up and pause.&amp;nbsp; I have noNotes, noSource, and msgLevel = i, and that gets rid of everything except the list of variables that make up the index being used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the log for one call without anything suppressed:&lt;/P&gt;
&lt;PRE&gt;38     proc stdRate    data = analysis.nSummarizeT (where = (&amp;lt;snipped&amp;gt;)
39                  refData = analysis.qUSCensusFormatted (where = (&amp;lt;snipped&amp;gt;)
40                  method  = direct stat = rate(mult = 100000) effect = ratio
41                  alpha   = 0.05 CL = gamma(type = average)
42                  plots   = all;
INFO: Index unique1 selected for WHERE clause optimization.
43         by levelN level groupN group exposureTypeN exposureType _type_ consentFirst remove;
44
45         population group = exposureHigh event = events total = personYears;
46         reference                                      total = population;
47         strata gender ageGroup / effect stats(cl = poisson) order = data;
INFO: Use of index unique1 for WHERE clause optimization canceled.
INFO: Index index selected for WHERE clause optimization.
INFO: Index index selected for BY clause processing.
NOTE: An index was selected to execute the BY statement.
      The observations will be returned in index order rather than in physical order.  The selected index is for the variable(s):
 levelN
 level
 groupN
 group
 exposureTypeN
 exposureType
 _type_
 consentFirst
 remove
48         ods output StdRate = ___StdRate (compress = no) Effect = ___Effect (compress = no);
49     run;
NOTE: The data set WORK.___EFFECT has 1 observations and 19 variables.
NOTE: The data set WORK.___STDRATE has 2 observations and 21 variables.
NOTE: PROCEDURE STDRATE used (Total process time):
      real time           0.63 seconds
      user cpu time       0.14 seconds
      system cpu time     0.17 seconds
      memory              11344.90k
      OS Memory           86928.00k
      Timestamp           02/09/2021 09:40:35 PM
      Step Count                        9281  Switch Count  0&lt;/PRE&gt;
&lt;P&gt;Here is the log for several calls with noNotes, noSource, and msgLevel = i:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;levelN
 level
 groupN
 group
 exposureTypeN
 exposureType
 _type_
 consentFirst
 remove
 levelN
 level
 groupN
 group
 exposureTypeN
 exposureType
 _type_
 consentFirst
 remove
 levelN
 level
 groupN
 group
 exposureTypeN
 exposureType
 _type_
&lt;EM&gt;&amp;lt;etc.&amp;gt;&lt;/EM&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is there any way to prevent SAS from printing these index variables?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm regards,&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Michael&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 03:25:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Suppress-writing-composite-index-to-log/m-p/718101#M222163</guid>
      <dc:creator>Kastchei</dc:creator>
      <dc:date>2021-02-10T03:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress writing composite index to log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Suppress-writing-composite-index-to-log/m-p/718102#M222164</link>
      <description>&lt;P&gt;options msglevel=N should suppress printing detailed index related information, note that 'N' value of this options is default.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 03:01:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Suppress-writing-composite-index-to-log/m-p/718102#M222164</guid>
      <dc:creator>qoit</dc:creator>
      <dc:date>2021-02-10T03:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress writing composite index to log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Suppress-writing-composite-index-to-log/m-p/718106#M222167</link>
      <description>&lt;P&gt;It suppresses notes that begin with INFO:, but it does not, sadly, suppress the index variables being listed out.&amp;nbsp; I edited my post to include that.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 03:25:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Suppress-writing-composite-index-to-log/m-p/718106#M222167</guid>
      <dc:creator>Kastchei</dc:creator>
      <dc:date>2021-02-10T03:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress writing composite index to log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Suppress-writing-composite-index-to-log/m-p/718107#M222168</link>
      <description>&lt;P&gt;To replicate:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data t(index=(I)); I=1; run;
options nonotes ; 
proc print; by I; run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This looks like an "omission" (aka a defect), and there is no reason this message should appear in the log imho, even if it's not a NOTE per se.&lt;/P&gt;
&lt;P&gt;I'd report it to SAS Tech support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 03:31:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Suppress-writing-composite-index-to-log/m-p/718107#M222168</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-02-10T03:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress writing composite index to log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Suppress-writing-composite-index-to-log/m-p/718108#M222169</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt; Is there any way to prevent SAS from printing these index variables?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This does it:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename LOGFILE temp;
proc printto log=LOGFILE; run;
proc print; by I; run;
proc printto log=log; run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 03:36:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Suppress-writing-composite-index-to-log/m-p/718108#M222169</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-02-10T03:36:25Z</dc:date>
    </item>
  </channel>
</rss>

