<?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 doubles % signs in label? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-MEANS-doubles-signs-in-label/m-p/469993#M70850</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19879"&gt;@Quentin&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/Percent-sign-in-variable-label-is-doubled-by-PROC-FREQ/td-p/87160" target="_blank"&gt;This 2013/2014 thread&lt;/A&gt; suggests that it started with SAS 9.2 and this is also the first version where I saw it in PROC FREQ cross-tabulations, but not in univariate tables (!), and later in PROC MEANS. My attempt to write the percent sign as&amp;nbsp;%sysfunc(byte(37)) failed. However, in the old thread a user &lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/47691" target="_blank"&gt;joejw84&lt;/A&gt;&amp;nbsp;stated he had more luck&amp;nbsp;using a unicode representation for ODS output, which I haven't tried yet.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jun 2018 16:35:42 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2018-06-13T16:35:42Z</dc:date>
    <item>
      <title>PROC MEANS doubles % signs in label?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-MEANS-doubles-signs-in-label/m-p/469946#M70836</link>
      <description>&lt;P&gt;I'm running PROC MEANS on a labeled variable, that has a % in the label.&amp;nbsp; The output (both listing and ODS HTML) shows two percent signs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=sashelp.class ;
  var age ;
  label age='My % label with %' ;
run ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Returns:&lt;/P&gt;
&lt;PRE&gt;                        The MEANS Procedure

             Analysis Variable : Age My %% label with %%

  N            Mean         Std Dev         Minimum         Maximum
 19      13.3157895       1.4926722      11.0000000      16.0000000
 &lt;/PRE&gt;
&lt;P&gt;Any particular reason this happens, or way to avoid it?&amp;nbsp; PROC PRINT and PROC FREQ don't double the percent signs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Above is from 9.4M4 on Win10.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 15:15:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-MEANS-doubles-signs-in-label/m-p/469946#M70836</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2018-06-13T15:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MEANS doubles % signs in label?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-MEANS-doubles-signs-in-label/m-p/469993#M70850</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19879"&gt;@Quentin&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/Percent-sign-in-variable-label-is-doubled-by-PROC-FREQ/td-p/87160" target="_blank"&gt;This 2013/2014 thread&lt;/A&gt; suggests that it started with SAS 9.2 and this is also the first version where I saw it in PROC FREQ cross-tabulations, but not in univariate tables (!), and later in PROC MEANS. My attempt to write the percent sign as&amp;nbsp;%sysfunc(byte(37)) failed. However, in the old thread a user &lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/47691" target="_blank"&gt;joejw84&lt;/A&gt;&amp;nbsp;stated he had more luck&amp;nbsp;using a unicode representation for ODS output, which I haven't tried yet.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 16:35:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-MEANS-doubles-signs-in-label/m-p/469993#M70850</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2018-06-13T16:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MEANS doubles % signs in label?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-MEANS-doubles-signs-in-label/m-p/470011#M70855</link>
      <description>&lt;P&gt;This apparently is coming from the BASE.SUMMARY template in SASHELP.TMPLMST and the way the dynamic variable for labels is treated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However I can't find anything in Proc Template documentation (which I hate digging through)&amp;nbsp;for dynamic variables, which the Label is, for why this might happen as there is no actual manipulation of the label variable in the template.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might be able to create a custom version of the template and change the code for the header to resemble the code for the LCLM and UCLM headers which do display a single %.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or send the result to data set and use a Title statement to say the same thing with proc print.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 17:35:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-MEANS-doubles-signs-in-label/m-p/470011#M70855</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-06-13T17:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MEANS doubles % signs in label?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-MEANS-doubles-signs-in-label/m-p/470246#M70860</link>
      <description>&lt;P&gt;Wow, I'm shocked this bug could have survived since 9.2.&amp;nbsp; I'll send it in to tech support, just in case the OP of that thread never did.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 11:02:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-MEANS-doubles-signs-in-label/m-p/470246#M70860</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2018-06-14T11:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MEANS doubles % signs in label?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-MEANS-doubles-signs-in-label/m-p/470257#M70861</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;.&amp;nbsp; In the older thread Cynthia Z pointed out this support note,&amp;nbsp;&lt;A href="http://support.sas.com/kb/18/708.html" target="_blank"&gt;http://support.sas.com/kb/18/708.html&lt;/A&gt;, also about % signs in labels being doubled in dynamic column headers, but the note suggests it's more limited scope.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 11:12:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-MEANS-doubles-signs-in-label/m-p/470257#M70861</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2018-06-14T11:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MEANS doubles % signs in label?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-MEANS-doubles-signs-in-label/m-p/470343#M70872</link>
      <description>&lt;P&gt;Tech support confirmed it is a known issue, and suggested the unicode workaround.&amp;nbsp; I recommended they add a problem note to document this (or expand the current note since the problem is not limited to FILE PRINT ODS).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;They sent:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods escapechar='^';
ods listing close;
ods pdf file='ctest.pdf';
 
proc means data=sashelp.class ;
  var age ;
  label age='My ^{unicode 0025} label with ^{unicode 0025}' ;
run ;


proc freq data=sashelp.class;
  tables name*sex ;
  label name='Name with ^{unicode 0025}' ;
  label sex='sex with ^{unicode 0025}' ;
run ;

ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Jun 2018 14:58:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-MEANS-doubles-signs-in-label/m-p/470343#M70872</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2018-06-14T14:58:12Z</dc:date>
    </item>
  </channel>
</rss>

