<?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 use variable names instead of labels in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-TABULATE-use-variable-names-instead-of-labels/m-p/732533#M228262</link>
    <description>&lt;P&gt;Thanks, this worked!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was thinking there would be a NOLABELS options for PROC TABULATE as there is for PROC MEANS but there evidently isn't.&amp;nbsp; I guess this actually makes sense because it would be rare that you would prefer the variable name when using PROC TABULATE.&amp;nbsp; In any case, your solution worked.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Apr 2021 15:59:16 GMT</pubDate>
    <dc:creator>whs278</dc:creator>
    <dc:date>2021-04-09T15:59:16Z</dc:date>
    <item>
      <title>PROC TABULATE use variable names instead of labels</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TABULATE-use-variable-names-instead-of-labels/m-p/732511#M228247</link>
      <description>&lt;P&gt;Is there way to use the variable names in PROC TABULATE instead of labels?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 14:56:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TABULATE-use-variable-names-instead-of-labels/m-p/732511#M228247</guid>
      <dc:creator>whs278</dc:creator>
      <dc:date>2021-04-09T14:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TABULATE use variable names instead of labels</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TABULATE-use-variable-names-instead-of-labels/m-p/732513#M228248</link>
      <description>&lt;P&gt;If you remove the labels from the variable names, then all SAS PROCs (as far as I know) use the variable name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options nolabel;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;which affects all PROCs until you turn it off.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 14:58:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TABULATE-use-variable-names-instead-of-labels/m-p/732513#M228248</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-04-09T14:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TABULATE use variable names instead of labels</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TABULATE-use-variable-names-instead-of-labels/m-p/732533#M228262</link>
      <description>&lt;P&gt;Thanks, this worked!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was thinking there would be a NOLABELS options for PROC TABULATE as there is for PROC MEANS but there evidently isn't.&amp;nbsp; I guess this actually makes sense because it would be rare that you would prefer the variable name when using PROC TABULATE.&amp;nbsp; In any case, your solution worked.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 15:59:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TABULATE-use-variable-names-instead-of-labels/m-p/732533#M228262</guid>
      <dc:creator>whs278</dc:creator>
      <dc:date>2021-04-09T15:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TABULATE use variable names instead of labels</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TABULATE-use-variable-names-instead-of-labels/m-p/732534#M228263</link>
      <description>&lt;P&gt;Don't know if this helps as you don't say how many variables might be involved.&lt;/P&gt;
&lt;P&gt;You can override the default label for any variable in a Table statement by using variablename='Label text' in Proc tabulate.&lt;/P&gt;
&lt;P&gt;This works for statistics as well such as Sum='Sum of xxxx'&lt;/P&gt;
&lt;P&gt;Example&lt;/P&gt;
&lt;PRE&gt;proc tabulate data=sashelp.cars;
   class drivetrain;
   var mpg_city;
   tables drivetrain='Drivetrain',
          mpg_city='MPG'*mean;
run;&lt;/PRE&gt;
&lt;P&gt;The above will display "Drivetrain" instead of "Drive Train" and "MPG" instead of assigned label of "MPG (City)";&lt;/P&gt;
&lt;P&gt;Or provide a Label statement.&lt;/P&gt;
&lt;PRE&gt;proc tabulate data=sashelp.cars;
   class drivetrain;
   var mpg_city;
   tables drivetrain,
          mpg_city*mean;
   label drivetrain='Drivetrain'
         mpg_city='MPG'
   ;

run;&lt;/PRE&gt;
&lt;P&gt;The equivalent for statistics would be KEYLABEL: Keylabel mean='Average'; for example would display 'Average' for all mean statistics.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 15:59:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TABULATE-use-variable-names-instead-of-labels/m-p/732534#M228263</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-04-09T15:59:24Z</dc:date>
    </item>
  </channel>
</rss>

