<?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: Proc Mean Output Rename &amp;amp; put variables new table in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Mean-Output-Rename-amp-put-variables-new-table/m-p/225980#M53996</link>
    <description>Several ways&lt;BR /&gt;1) var q1-q1000;&lt;BR /&gt;2) var q:;&lt;BR /&gt;3) var q1--q1000; used when variables are listed side by side but not necessarily all present or in order.</description>
    <pubDate>Thu, 17 Sep 2015 01:19:01 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2015-09-17T01:19:01Z</dc:date>
    <item>
      <title>Proc Mean Output Rename &amp; put variables new table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Mean-Output-Rename-amp-put-variables-new-table/m-p/225742#M53968</link>
      <description>&lt;P&gt;&lt;SPAN&gt;At the following code i don't want to change columns name when i use to output option .How can i prevent this. And i wonder if i need to use more VAR variable im Mean procedure how can i do it. If i do it, is it possible to make sort this values on new table ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC MEANS DATA=WORK.X1 noprint&lt;BR /&gt;FW=12&lt;BR /&gt;PRINTALLTYPES&lt;BR /&gt;CHARTYPE&lt;BR /&gt;QMETHOD=OS&lt;BR /&gt;VARDEF=DF&lt;BR /&gt;MEAN&lt;BR /&gt;STD&lt;BR /&gt;MODE&lt;BR /&gt;P10&lt;BR /&gt;P90 ;&lt;BR /&gt;VAR F2;&lt;BR /&gt;ods output summary=sample;&lt;BR /&gt;RUN;&lt;BR /&gt;data newStep;&lt;BR /&gt;set work.sample;&lt;BR /&gt;Slope=2.95/(((F2_P90-F2_Mode)*2+F2_Mode)-(F2_Mode));&lt;BR /&gt;Median=((F2_P90-F2_Mode)*2+F2_Mode)-((F2_Mode)-(F2_P90-F2_Mode)*2)/2;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2015 23:34:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Mean-Output-Rename-amp-put-variables-new-table/m-p/225742#M53968</guid>
      <dc:creator>turcay</dc:creator>
      <dc:date>2015-09-15T23:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Mean Output Rename &amp; put variables new table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Mean-Output-Rename-amp-put-variables-new-table/m-p/225743#M53969</link>
      <description>did you try the autoname= option in proc meand. This automatically rename the new variables created by concatenating the statistical var with var statement variable. So the new variables will be named as mean_f2. Hope this is what you are expecting.</description>
      <pubDate>Tue, 15 Sep 2015 23:57:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Mean-Output-Rename-amp-put-variables-new-table/m-p/225743#M53969</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2015-09-15T23:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Mean Output Rename &amp; put variables new table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Mean-Output-Rename-amp-put-variables-new-table/m-p/225748#M53970</link>
      <description>&lt;P&gt;you can use more var variables in proc means by just mentioning the numeric variable names in the var statement separated by space. And in the output out statement , use the autoname option so that the descriptic statistics produced will represent the respective statistics concatenated with variable names.Try the code something like below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=have mean std min max;
var var1 var2;
output out=want mean= std= min= max= / autoname;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jag&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2015 00:56:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Mean-Output-Rename-amp-put-variables-new-table/m-p/225748#M53970</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2015-09-16T00:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Mean Output Rename &amp; put variables new table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Mean-Output-Rename-amp-put-variables-new-table/m-p/225809#M53978</link>
      <description>&lt;P&gt;Thanks a lot but how can i prevent first two column and it brings just one raw in output?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=SampleData mean std mode P10 P90
FW=12  
	PRINTALLTYPES
	CHARTYPE
	QMETHOD=OS
	VARDEF=DF 	
		MEAN 
		STD 
		MODE 	
		P10 
		P90
 ;
var Q1 Q2;
output out=want mean=mean std=std mode=mode P10=P10 P90=P90;
run;&lt;BR /&gt;&lt;BR /&gt;data newsample;&lt;BR /&gt;set work.sample;&lt;BR /&gt;Slope=2.95/(((P90-Mode)*2+Mode)-(Mode));&lt;BR /&gt;Median=((P90-Mode)*2+Mode)-((Mode)-(P90-Mode)*2)/2;&lt;BR /&gt;run;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/148i8BA8E1B3A89A45C4/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="nolabel.png" title="nolabel.png" /&gt;&lt;/P&gt;&lt;P&gt;I need other columns here ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;amp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i need to add thousands VAR in the proc means procedure &amp;nbsp;how can i made it ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2015 12:17:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Mean-Output-Rename-amp-put-variables-new-table/m-p/225809#M53978</guid>
      <dc:creator>turcay</dc:creator>
      <dc:date>2015-09-16T12:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Mean Output Rename &amp; put variables new table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Mean-Output-Rename-amp-put-variables-new-table/m-p/225820#M53979</link>
      <description>&lt;P&gt;I'll take thousands column and I want to see output like this.&lt;/P&gt;&lt;P&gt;.&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/150i38654022CF3A2149/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="output.png" title="output.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2015 13:01:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Mean-Output-Rename-amp-put-variables-new-table/m-p/225820#M53979</guid>
      <dc:creator>turcay</dc:creator>
      <dc:date>2015-09-16T13:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Mean Output Rename &amp; put variables new table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Mean-Output-Rename-amp-put-variables-new-table/m-p/225862#M53984</link>
      <description>&lt;P&gt;You can get all numeric variables on the VAR statement using a special list: _numeric_&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as in&lt;/P&gt;&lt;P&gt;VAR _numeric_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or NO VAR statement at all will summarize all numeric variables in the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2015 15:12:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Mean-Output-Rename-amp-put-variables-new-table/m-p/225862#M53984</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-09-16T15:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Mean Output Rename &amp; put variables new table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Mean-Output-Rename-amp-put-variables-new-table/m-p/225864#M53985</link>
      <description>Use STACKODS option in proc means:&lt;BR /&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#p17h6q7ygvkl1sn13qzf947dundi.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#p17h6q7ygvkl1sn13qzf947dundi.htm&lt;/A&gt;</description>
      <pubDate>Wed, 16 Sep 2015 15:12:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Mean-Output-Rename-amp-put-variables-new-table/m-p/225864#M53985</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-09-16T15:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Mean Output Rename &amp; put variables new table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Mean-Output-Rename-amp-put-variables-new-table/m-p/225872#M53986</link>
      <description>&lt;P&gt;Thanks again but I tried it and it didn't work.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2015 15:45:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Mean-Output-Rename-amp-put-variables-new-table/m-p/225872#M53986</guid>
      <dc:creator>turcay</dc:creator>
      <dc:date>2015-09-16T15:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Mean Output Rename &amp; put variables new table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Mean-Output-Rename-amp-put-variables-new-table/m-p/225882#M53990</link>
      <description>That's not helpful. How did it not work? What was your code? What does your data look like and what output do you want? Was there any errors?</description>
      <pubDate>Wed, 16 Sep 2015 16:25:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Mean-Output-Rename-amp-put-variables-new-table/m-p/225882#M53990</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-09-16T16:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Mean Output Rename &amp; put variables new table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Mean-Output-Rename-amp-put-variables-new-table/m-p/225933#M53993</link>
      <description>&lt;P&gt;I tried again and i made it, thank you. Now my last question is how can i add thousands columns on VAR expression from another data set.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=WORK.sample STACKODS
FW=12
     PRINTALLTYPES
     CHARTYPE
     QMETHOD=OS
     VARDEF=DF 
           MEAN 
           STD 
           MODE    
           P10 
           P90 ;
var Q1 Q2 Q3;
ods output summary=stacked;
run;
/*This code gives multiple row output*/



%let number=????
proc means data=WORK.sample STACKODS
FW=12
     PRINTALLTYPES
     CHARTYPE
     QMETHOD=OS
     VARDEF=DF 
           MEAN 
           STD 
           MODE    
           P10 
           P90 ;
var Q1 Q2 Q3........Q10000;
ods output summary=stacked;
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, 16 Sep 2015 20:16:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Mean-Output-Rename-amp-put-variables-new-table/m-p/225933#M53993</guid>
      <dc:creator>turcay</dc:creator>
      <dc:date>2015-09-16T20:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Mean Output Rename &amp; put variables new table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Mean-Output-Rename-amp-put-variables-new-table/m-p/225980#M53996</link>
      <description>Several ways&lt;BR /&gt;1) var q1-q1000;&lt;BR /&gt;2) var q:;&lt;BR /&gt;3) var q1--q1000; used when variables are listed side by side but not necessarily all present or in order.</description>
      <pubDate>Thu, 17 Sep 2015 01:19:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Mean-Output-Rename-amp-put-variables-new-table/m-p/225980#M53996</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-09-17T01:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Mean Output Rename &amp; put variables new table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Mean-Output-Rename-amp-put-variables-new-table/m-p/226013#M54000</link>
      <description>&lt;P&gt;Thanks a lot. I made it. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2015 10:56:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Mean-Output-Rename-amp-put-variables-new-table/m-p/226013#M54000</guid>
      <dc:creator>turcay</dc:creator>
      <dc:date>2015-09-17T10:56:02Z</dc:date>
    </item>
  </channel>
</rss>

