<?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: output dataset and define varnames in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-output-dataset-and-define-varnames/m-p/886625#M350341</link>
    <description>&lt;P&gt;using &lt;STRONG&gt;rename=&lt;/STRONG&gt; data set option?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC TABULATE ... out=mz2022_ergebnis(drop=_: rename=(oldname1=newname1 oldname2=newname2));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jul 2023 13:08:51 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2023-07-27T13:08:51Z</dc:date>
    <item>
      <title>proc tabulate: output dataset and define varnames</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-output-dataset-and-define-varnames/m-p/886584#M350326</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;with the following proc-tabulate-step I create the dataset "mz2022_ergebnis" (screenshot). The variables names are pretty cryptic. Is there a option to define the output-names within the proc-tabulate-step?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc tabulate data=mz2022 out=mz2022_ergebnis (drop=_:);
class PET_ArbZeit_neu / mlf;
var HRF;
tables PET_ArbZeit_neu="" all="Gesamt",HRF=""*sum="sum_2022" HRF=""*COLPCTSUM="rel_2022";
where PET_StiB3 = "2_abhBesch" and P_erwtyp3= "1_ET" and BevHH_HW=1;
format PET_ArbZeit_neu $PET_ArbZeit_neu_fmt.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Konkordanz_1-1690440646658.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/86164i4C8E92B34A4CE2A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Konkordanz_1-1690440646658.png" alt="Konkordanz_1-1690440646658.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 06:52:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-output-dataset-and-define-varnames/m-p/886584#M350326</guid>
      <dc:creator>Konkordanz</dc:creator>
      <dc:date>2023-07-27T06:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate: output dataset and define varnames</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-output-dataset-and-define-varnames/m-p/886625#M350341</link>
      <description>&lt;P&gt;using &lt;STRONG&gt;rename=&lt;/STRONG&gt; data set option?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC TABULATE ... out=mz2022_ergebnis(drop=_: rename=(oldname1=newname1 oldname2=newname2));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 13:08:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-output-dataset-and-define-varnames/m-p/886625#M350341</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-07-27T13:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate: output dataset and define varnames</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-output-dataset-and-define-varnames/m-p/886650#M350360</link>
      <description>&lt;P&gt;Nothing at all cryptic about the variable names.&lt;/P&gt;
&lt;P&gt;Class variables get the names of the class variables.&lt;/P&gt;
&lt;P&gt;Statistics get the name of the variable with the statistic appended. Var_sum is the Sum of Var for the given combination of class variables (and table if more than one table created).&lt;/P&gt;
&lt;P&gt;This is pretty much the behavior of Proc Means/Summary with the Autoname option for statistics of Var variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Only likely headache is starting with very long variable names where the appended statistic either has no room at all or results in a name too long to fit inside 32 characters.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 15:03:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-output-dataset-and-define-varnames/m-p/886650#M350360</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-07-27T15:03:31Z</dc:date>
    </item>
  </channel>
</rss>

