<?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 tabulate- rename variables and formats in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-rename-variables-and-formats/m-p/606030#M175931</link>
    <description>&lt;P&gt;I see you &lt;A href="https://communities.sas.com/t5/SAS-Programming/proc-tabulate-overlapping-ranges-Show-missing-groups-display-PCT/m-p/606025" target="_self"&gt;found the answer.&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Nov 2019 07:27:50 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2019-11-21T07:27:50Z</dc:date>
    <item>
      <title>proc tabulate- rename variables and formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-rename-variables-and-formats/m-p/606028#M175929</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I am using proc tabulate.&lt;/P&gt;
&lt;P&gt;I want to format the summary columns and also&amp;nbsp; rename columns.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value multiFmt (multilabel notsorted)
2,3='2-3'
4='4'
2-4='Total 2-4'
5-8='5-8'
9-10='9-10'
5-10='Total 5-10'
11='11'
low-high='Total All'
;
Run;

PROC TABULATE DATA=ttbl  OUT=output;
class group / mlf preloadfmt order=data ;
	VAR ID Y  ;
	TABLE group='' ,
                      ID=''*(N*f=6.0)='No_Customers' 
		      ID=''*(PCTN*f=6.1)='PCT_Customers'
                      Y=''*(sum*f=6.0)='sum_Y'
                      Y=''*(PCTsum*f=6.1)=='PCT_sum_Y'
;
format group multiFmt.;
RUN;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Please find the log error&lt;/P&gt;
&lt;P&gt;29 TABLE group='' ,&lt;BR /&gt;30 ID=''*(N*f=6.0)='No_Customers'&lt;BR /&gt;_&lt;BR /&gt;22&lt;BR /&gt;31 ID=''*(PCTN*f=6.1)='PCT_Customers'&lt;BR /&gt;_&lt;BR /&gt;22&lt;BR /&gt;32 Y=''*(sum*f=6.0)='sum_Y'&lt;BR /&gt;_&lt;BR /&gt;22&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string. &lt;BR /&gt;33 Y=''*(PCTsum*f=6.1)=='PCT_sum_Y'&lt;BR /&gt;_&lt;BR /&gt;22&lt;BR /&gt;200&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, ;, (, *, ',', /, [, _ALL_, _CHARACTER_, &lt;BR /&gt;_CHAR_, _NUMERIC_, {. &lt;BR /&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;BR /&gt;34 ;&lt;BR /&gt;35 format group multiFmt.;&lt;BR /&gt;36 RUN;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 07:22:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-rename-variables-and-formats/m-p/606028#M175929</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2019-11-21T07:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate- rename variables and formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-rename-variables-and-formats/m-p/606030#M175931</link>
      <description>&lt;P&gt;I see you &lt;A href="https://communities.sas.com/t5/SAS-Programming/proc-tabulate-overlapping-ranges-Show-missing-groups-display-PCT/m-p/606025" target="_self"&gt;found the answer.&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 07:27:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-rename-variables-and-formats/m-p/606030#M175931</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-11-21T07:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate- rename variables and formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-rename-variables-and-formats/m-p/606032#M175933</link>
      <description>&lt;P&gt;No, I just showed the log.&lt;/P&gt;
&lt;P&gt;I didn't find the answer and this is the reason that I have posted the question.&lt;/P&gt;
&lt;P&gt;Don't you think so???&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 07:36:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-rename-variables-and-formats/m-p/606032#M175933</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2019-11-21T07:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate- rename variables and formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-rename-variables-and-formats/m-p/606249#M176030</link>
      <description>&lt;P&gt;If you are going to relabel a variable or statistic then that goes immediately after the name or statistic.&lt;/P&gt;
&lt;P&gt;Not:&lt;/P&gt;
&lt;PRE&gt;ID=''*(N*f=6.0)='No_Customers' &lt;/PRE&gt;
&lt;P&gt;but&lt;/P&gt;
&lt;PRE&gt;ID=''*(N='No_Customers' *f=6.0) &lt;/PRE&gt;
&lt;P&gt;You may also want the table option ROW=FLOAT to clean up the suppressed blank labels in the row headers.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 18:21:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-rename-variables-and-formats/m-p/606249#M176030</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-11-21T18:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate- rename variables and formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-rename-variables-and-formats/m-p/606318#M176051</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt; I didn't find the answer&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;You did. You moved the label right after the column name, where it belongs&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token keyword"&gt;ID&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;''&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;*&lt;/SPAN&gt;PCTN&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'PCT_Customers'&lt;/SPAN&gt; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 22:26:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-rename-variables-and-formats/m-p/606318#M176051</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-11-21T22:26:47Z</dc:date>
    </item>
  </channel>
</rss>

