<?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 How to remove suffix from proc means in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-suffix-from-proc-means/m-p/778795#M247943</link>
    <description>&lt;P&gt;I want to calculate the number of missing values in my dataset for each column and output the results to a separate dataset so I can later drop the variables that have more than X% missing values. The code below is the one that is used:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data have(drop=x);
Do x = 1 to 5;
	very_long_variable_name_12m = x;
	very_long_variable_name_24m = x*2;
	If x &amp;gt; 3 then call missing (very_long_variable_name_12m,very_long_variable_name_24m);
	Output;
End;
Run;

Proc means data=have nmiss;
Output out=not_want nmiss= /autoname;
Run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;When proc means outputs the variable it cuts off a significant part of the variable name making it impossible to understand what variable is being referenced.&lt;/P&gt;
&lt;P&gt;My original dataset has thousands of variables, so fixing this issue by hand is not an option. Can someone please help?&lt;/P&gt;</description>
    <pubDate>Fri, 05 Nov 2021 15:05:01 GMT</pubDate>
    <dc:creator>kashlik123</dc:creator>
    <dc:date>2021-11-05T15:05:01Z</dc:date>
    <item>
      <title>How to remove suffix from proc means</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-suffix-from-proc-means/m-p/778795#M247943</link>
      <description>&lt;P&gt;I want to calculate the number of missing values in my dataset for each column and output the results to a separate dataset so I can later drop the variables that have more than X% missing values. The code below is the one that is used:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data have(drop=x);
Do x = 1 to 5;
	very_long_variable_name_12m = x;
	very_long_variable_name_24m = x*2;
	If x &amp;gt; 3 then call missing (very_long_variable_name_12m,very_long_variable_name_24m);
	Output;
End;
Run;

Proc means data=have nmiss;
Output out=not_want nmiss= /autoname;
Run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;When proc means outputs the variable it cuts off a significant part of the variable name making it impossible to understand what variable is being referenced.&lt;/P&gt;
&lt;P&gt;My original dataset has thousands of variables, so fixing this issue by hand is not an option. Can someone please help?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 15:05:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-suffix-from-proc-means/m-p/778795#M247943</guid>
      <dc:creator>kashlik123</dc:creator>
      <dc:date>2021-11-05T15:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove suffix from proc means</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-suffix-from-proc-means/m-p/778797#M247944</link>
      <description>&lt;P&gt;Don't use &lt;FONT face="courier new,courier"&gt;/autoname&lt;/FONT&gt;. In this simplified case where there is only one output statistic, why would you need to have _NMISS at the end?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 15:08:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-suffix-from-proc-means/m-p/778797#M247944</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-11-05T15:08:13Z</dc:date>
    </item>
  </channel>
</rss>

