<?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 MEANS autoname in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/PROC-MEANS-autoname/m-p/653507#M22517</link>
    <description>Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/288620"&gt;@bkq32&lt;/a&gt;&lt;BR /&gt;Unfortunately, the maximum possible length for variable names is set to 32 in SAS, whatever the VALIDVARNAME option you use.&lt;BR /&gt;Maybe you could define some rules / naming conventions and document them for your dataset so that you still have meaningful variables. Why don’t you set labels for example ?&lt;BR /&gt;Best,</description>
    <pubDate>Fri, 05 Jun 2020 05:25:13 GMT</pubDate>
    <dc:creator>ed_sas_member</dc:creator>
    <dc:date>2020-06-05T05:25:13Z</dc:date>
    <item>
      <title>PROC MEANS autoname</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-MEANS-autoname/m-p/653505#M22516</link>
      <description>&lt;P&gt;I'm running a variable&amp;nbsp;fit_msr_shldr_wst_sml_b_r_f through PROC MEANS and want it to output the 25th and 75th percentiles as&amp;nbsp;fit_msr_shldr_wst_sml_b_r_f_p25 (31 chars) and&amp;nbsp;fit_msr_shldr_wst_sml_b_r_f_p75. Why is the name being truncated and coming out as&amp;nbsp;fit_msr_shldr_wst_sml_b_r__p25 (30 chars)? I know it's not an ideal variable name, but any help would be appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input fit_msr_shldr_wst_sml_b_r_f;
cards;
4
9
9
8
2
4
;
run;


proc means data=have nway noprint;
var fit_msr_shldr_wst_sml_b_r_f;
output out=temp0 P25= P75= / autoname;
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>Fri, 05 Jun 2020 04:42:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-MEANS-autoname/m-p/653505#M22516</guid>
      <dc:creator>bkq32</dc:creator>
      <dc:date>2020-06-05T04:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MEANS autoname</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-MEANS-autoname/m-p/653507#M22517</link>
      <description>Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/288620"&gt;@bkq32&lt;/a&gt;&lt;BR /&gt;Unfortunately, the maximum possible length for variable names is set to 32 in SAS, whatever the VALIDVARNAME option you use.&lt;BR /&gt;Maybe you could define some rules / naming conventions and document them for your dataset so that you still have meaningful variables. Why don’t you set labels for example ?&lt;BR /&gt;Best,</description>
      <pubDate>Fri, 05 Jun 2020 05:25:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-MEANS-autoname/m-p/653507#M22517</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-06-05T05:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MEANS autoname</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-MEANS-autoname/m-p/653508#M22518</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/292097"&gt;@ed_sas_member&lt;/a&gt; , If I'm not mistaken, the new variable name I'm trying to make would only be 31 characters, so I'm confused as to why it's being truncated&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 05:33:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-MEANS-autoname/m-p/653508#M22518</guid>
      <dc:creator>bkq32</dc:creator>
      <dc:date>2020-06-05T05:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MEANS autoname</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-MEANS-autoname/m-p/653514#M22520</link>
      <description>Just an educated guess that SAS needs to confirm...&lt;BR /&gt;&lt;BR /&gt;When the software sees AUTONAME, it doesn't try to parse your code to see which statistics you want.  Instead it presumes you might want to add the longest possible suffix (_range) and defines the prefix accordingly.  The advantage:  if you run AUTONAME twice with different statistics each time, you get the same prefix both times.</description>
      <pubDate>Fri, 05 Jun 2020 06:33:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-MEANS-autoname/m-p/653514#M22520</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2020-06-05T06:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MEANS autoname</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-MEANS-autoname/m-p/653520#M22521</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/288620"&gt;@bkq32&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As highlighted by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;, SAS acts as if it has to put the largest keyword suffix while having less than 32 characters.&amp;nbsp;To avoid this truncation, you can specify the desired name in the "keyword =" option and remove "autoname" (but you will loose the "flexibility" of the program)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=have nway noprint;
var fit_msr_shldr_wst_sml_b_r_f;
output out=temp0 P25=fit_msr_shldr_wst_sml_b_r_f_p25 P75=fit_msr_shldr_wst_sml_b_r_f_p75;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 07:03:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-MEANS-autoname/m-p/653520#M22521</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-06-05T07:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MEANS autoname</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-MEANS-autoname/m-p/653522#M22522</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt; That makes sense - thank you!</description>
      <pubDate>Fri, 05 Jun 2020 07:17:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-MEANS-autoname/m-p/653522#M22522</guid>
      <dc:creator>bkq32</dc:creator>
      <dc:date>2020-06-05T07:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MEANS autoname</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-MEANS-autoname/m-p/653523#M22523</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/292097"&gt;@ed_sas_member&lt;/a&gt; Thanks for letting me know how to work around that. I'll give that a shot</description>
      <pubDate>Fri, 05 Jun 2020 07:18:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-MEANS-autoname/m-p/653523#M22523</guid>
      <dc:creator>bkq32</dc:creator>
      <dc:date>2020-06-05T07:18:09Z</dc:date>
    </item>
  </channel>
</rss>

