<?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: A question about using &amp;quot;output out=&amp;quot; in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/A-question-about-using-quot-output-out-quot/m-p/292284#M60633</link>
    <description>&lt;P&gt;Because there's no variable called Total in SASHELP.SHOES.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Run a proc contents on your dataset&amp;nbsp;to see the variable names.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Aug 2016 20:24:31 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-08-17T20:24:31Z</dc:date>
    <item>
      <title>A question about using "output out="</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-question-about-using-quot-output-out-quot/m-p/292278#M60630</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I got a problem when I practise using&amp;nbsp;&amp;nbsp;"output out=" . The dataset I'm using is sashelp.shoes, which is about shoes sale in the world, and contains many different regions (africa, asia,europe ...). I want to make a table which can summerize the sales based on regions (&lt;SPAN&gt;africa, asia,europe ...), this is my codes&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc means data= sashelp.shoes ;&lt;BR /&gt;var total sales ;&lt;/P&gt;&lt;P&gt;by region;&lt;BR /&gt;output out=Regional_sales SUM(total sales)=reginal_sales;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but it didn't work, the log says:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ERROR: Variable TOTAL not found.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;why ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2016 20:14:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-question-about-using-quot-output-out-quot/m-p/292278#M60630</guid>
      <dc:creator>mich_ard</dc:creator>
      <dc:date>2016-08-17T20:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: A question about using "output out="</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-question-about-using-quot-output-out-quot/m-p/292284#M60633</link>
      <description>&lt;P&gt;Because there's no variable called Total in SASHELP.SHOES.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Run a proc contents on your dataset&amp;nbsp;to see the variable names.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2016 20:24:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-question-about-using-quot-output-out-quot/m-p/292284#M60633</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-17T20:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: A question about using "output out="</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-question-about-using-quot-output-out-quot/m-p/292287#M60635</link>
      <description>&lt;P&gt;There is no variable named "Total" in sashelp.shoes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I should change in your program:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var sales;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;output out=Regional_sales SUM(sales)=total_regional_sales;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Shmuel&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2016 20:30:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-question-about-using-quot-output-out-quot/m-p/292287#M60635</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-08-17T20:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: A question about using "output out="</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-question-about-using-quot-output-out-quot/m-p/292299#M60640</link>
      <description>&lt;P&gt;If you only want the output data set you might consider using Proc Summary or use the NOPRINT option with Proc Means to suppress the display tables.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2016 21:00:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-question-about-using-quot-output-out-quot/m-p/292299#M60640</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-08-17T21:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: A question about using "output out="</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-question-about-using-quot-output-out-quot/m-p/292301#M60641</link>
      <description>&lt;P&gt;Thank&amp;nbsp;&lt;SPAN class="login-bold"&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879" target="_self"&gt;Reeza&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;SPAN class=""&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/88384" target="_self"&gt;Shmuel&lt;/A&gt;, your suggestions seem right, but still have some questions:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;&lt;SPAN class=""&gt;1, when I &amp;nbsp;use PROC CONTENTS to check variable names, no "total sales" was found indeed, only saw "sales", but the dataset "sashelp.shoes" in my computer does clearly show "Total Sales" instead of "Sales" (see the attached picture 1).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;&lt;SPAN class=""&gt;2, when I used following codes as you suggested, it seemed working, which shows a table&amp;nbsp;format exactly as I want, but the problem remains:&amp;nbsp;&lt;SPAN&gt;"Total Sales" again, not the one I expected (ie,&amp;nbsp;total_regional_sales) (picture 2).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;&lt;SPAN class=""&gt;proc means data= sashelp.shoes ;&lt;BR /&gt;var sales ;&lt;BR /&gt;by region;&lt;BR /&gt;output out=Regional_sales SUM(sales)=total_regional_sales;&lt;BR /&gt;run;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;&lt;SPAN class=""&gt;this problem seems&amp;nbsp;b&lt;SPAN&gt;izzare, "Total Sales" seems very dominate in my computer, I wonder if my computer is virus infected.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;any more idea? &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;thanks again. Mike&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12853i12B521965653CE93/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="shoes sale.jpg" title="shoes sale.jpg" /&gt;</description>
      <pubDate>Wed, 17 Aug 2016 21:05:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-question-about-using-quot-output-out-quot/m-p/292301#M60641</guid>
      <dc:creator>mich_ard</dc:creator>
      <dc:date>2016-08-17T21:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: A question about using "output out="</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-question-about-using-quot-output-out-quot/m-p/292302#M60642</link>
      <description>&lt;P&gt;Your mixing up a variable label and the variable name. Total sales is the variable label. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc contents will show the label and name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Labels are used to control a variable display name in reports and such, names are used in coding and have more restrictions.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2016 21:11:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-question-about-using-quot-output-out-quot/m-p/292302#M60642</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-17T21:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: A question about using "output out="</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-question-about-using-quot-output-out-quot/m-p/292307#M60644</link>
      <description>&lt;P&gt;thanks master, you solved my problem.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2016 21:54:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-question-about-using-quot-output-out-quot/m-p/292307#M60644</guid>
      <dc:creator>mich_ard</dc:creator>
      <dc:date>2016-08-17T21:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: A question about using "output out="</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-question-about-using-quot-output-out-quot/m-p/292309#M60645</link>
      <description>&lt;P&gt;yes, i tried it, works just like proc means(+noprint). thanks a lot.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2016 22:22:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-question-about-using-quot-output-out-quot/m-p/292309#M60645</guid>
      <dc:creator>mich_ard</dc:creator>
      <dc:date>2016-08-17T22:22:16Z</dc:date>
    </item>
  </channel>
</rss>

