<?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 Creating a Column with No Statistics with Proc Tabulate in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Creating-a-Column-with-No-Statistics-with-Proc-Tabulate/m-p/342783#M63337</link>
    <description>&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;How do I include a variable in the proc tabulate table statment and have the output simply print the values of the variable instead of computing a statistic on version 9.4?&amp;nbsp; Right now, I am getting a sum of the diff variable for each month since it's the default.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;tabulate&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=weather&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;class&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;precip month;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;var&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; temp diff&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; month&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;*precip&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;,temp*&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;(&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;max&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) diff;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Mar 2017 15:23:28 GMT</pubDate>
    <dc:creator>tzaman</dc:creator>
    <dc:date>2017-03-21T15:23:28Z</dc:date>
    <item>
      <title>Creating a Column with No Statistics with Proc Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-a-Column-with-No-Statistics-with-Proc-Tabulate/m-p/342783#M63337</link>
      <description>&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;How do I include a variable in the proc tabulate table statment and have the output simply print the values of the variable instead of computing a statistic on version 9.4?&amp;nbsp; Right now, I am getting a sum of the diff variable for each month since it's the default.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;tabulate&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=weather&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;class&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;precip month;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;var&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; temp diff&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; month&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;*precip&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;,temp*&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;(&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;max&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) diff;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2017 15:23:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-a-Column-with-No-Statistics-with-Proc-Tabulate/m-p/342783#M63337</guid>
      <dc:creator>tzaman</dc:creator>
      <dc:date>2017-03-21T15:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Column with No Statistics with Proc Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-a-Column-with-No-Statistics-with-Proc-Tabulate/m-p/342788#M63338</link>
      <description>&lt;P&gt;Please show some more details of what you may be looking for, it may be better to use PROC REPORT in this case, if no statistics are to be calculated.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2017 23:00:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-a-Column-with-No-Statistics-with-Proc-Tabulate/m-p/342788#M63338</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-20T23:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Column with No Statistics with Proc Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-a-Column-with-No-Statistics-with-Proc-Tabulate/m-p/342845#M63347</link>
      <description>&lt;P&gt;It's very difficult to picture how your report would make any sense. &amp;nbsp;Is DIFF constant for an entire month? &amp;nbsp;If that's the case, here are some ideas you can play with to see if they come closer to what you are looking for:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;tables month*precip, temp*max diff*mean;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;tables month, precip*temp*max diff*mean;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2017 05:44:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-a-Column-with-No-Statistics-with-Proc-Tabulate/m-p/342845#M63347</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-03-21T05:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Column with No Statistics with Proc Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-a-Column-with-No-Statistics-with-Proc-Tabulate/m-p/342852#M63349</link>
      <description>&lt;P&gt;Do you have the same value of DIFF for all records within a month*precip combination (and I won't really mention how odd it looks to see Precip which I would almost always see as a var variable in any of my data used as a class variable). If so perhaps DIFF should be a class variable on the row dimension.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A very good idea when dealing with data dependent questions is to post an example input data set to show us what you have and then show what the desired result for that example data should be. Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In some very specific cases I have gotten an appearance similar to what you are requesting by using a statististic with variables in the role of your Diff &lt;STRONG&gt;but&lt;/STRONG&gt; that was because I knew I was going to use tabulate to display the values and the data was structured to work with Proc Tabulate rules [In my case only one record per combination of the row class values had non-missing value for the variable in question]. Max or Min would be likely candidate statistics.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2017 06:34:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-a-Column-with-No-Statistics-with-Proc-Tabulate/m-p/342852#M63349</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-03-21T06:34:24Z</dc:date>
    </item>
  </channel>
</rss>

