<?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 Excel output: Variable name to the left of the categorical levels of the variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Excel-output-Variable-name-to-the-left-of-the/m-p/745136#M233536</link>
    <description>Yeah. It is Chinese F and M. I am using sas in Chinese version .</description>
    <pubDate>Wed, 02 Jun 2021 11:28:46 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2021-06-02T11:28:46Z</dc:date>
    <item>
      <title>Proc Tabulate Excel output: Variable name to the left of the categorical levels of the variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Excel-output-Variable-name-to-the-left-of-the/m-p/744861#M233414</link>
      <description>&lt;P&gt;Hello, my question regarding proc tabulate is how to get the categorical variable name to appear to the left of the categorical levels of the variable, particularly in Excel output.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The categorical variable name is Gender and the categorical levels are Male and Female.&lt;/P&gt;&lt;P&gt;For example, my current proc tabulate output in Excel looks like this (please ignore color scheme):&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Currently_Have.png" style="width: 402px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59917i6972676BFA060849/image-size/large?v=v2&amp;amp;px=999" role="button" title="Currently_Have.png" alt="Currently_Have.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like the output in Excel to look like this below (please ignore the color scheme):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wanted_Output.png" style="width: 444px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59918i0ED961E7983B4C9E/image-dimensions/444x121?v=v2" width="444" height="121" role="button" title="Wanted_Output.png" alt="Wanted_Output.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there any options, statements etc. for proc tabulate to change to that kind of output? Are there ways to do this in ODS Excel?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if there's anything else I need to provide.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&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>Tue, 01 Jun 2021 03:57:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Excel-output-Variable-name-to-the-left-of-the/m-p/744861#M233414</guid>
      <dc:creator>stayhydrated</dc:creator>
      <dc:date>2021-06-01T03:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate Excel output: Variable name to the left of the categorical levels of the variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Excel-output-Variable-name-to-the-left-of-the/m-p/744907#M233429</link>
      <description>1) Create a dummy variable which value is "Gender". like :&lt;BR /&gt;dummy="Gender" ;&lt;BR /&gt;&lt;BR /&gt;2) use PROC REPORT instead .</description>
      <pubDate>Tue, 01 Jun 2021 12:04:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Excel-output-Variable-name-to-the-left-of-the/m-p/744907#M233429</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-06-01T12:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate Excel output: Variable name to the left of the categorical levels of the variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Excel-output-Variable-name-to-the-left-of-the/m-p/744909#M233430</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
 set sashelp.class;
 dummy='Gender';
run;
proc tabulate data=have;
class dummy sex age;
table dummy=' '*sex=' ',age=' '*n=' ';
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1622549256517.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59926iC5FA312025453DA3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1622549256517.png" alt="Ksharp_0-1622549256517.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 12:07:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Excel-output-Variable-name-to-the-left-of-the/m-p/744909#M233430</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-06-01T12:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate Excel output: Variable name to the left of the categorical levels of the variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Excel-output-Variable-name-to-the-left-of-the/m-p/744943#M233449</link>
      <description>PROC REPORT seems like the easiest solution. FYI - you can use the OUT option on PROC TABULATE to get the data/stats and then use PROC REPORT to display the summary stats and data as desired with more control.</description>
      <pubDate>Tue, 01 Jun 2021 14:26:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Excel-output-Variable-name-to-the-left-of-the/m-p/744943#M233449</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-06-01T14:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate Excel output: Variable name to the left of the categorical levels of the variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Excel-output-Variable-name-to-the-left-of-the/m-p/745005#M233482</link>
      <description>This is a very easy solution, thank you so much!</description>
      <pubDate>Tue, 01 Jun 2021 17:56:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Excel-output-Variable-name-to-the-left-of-the/m-p/745005#M233482</guid>
      <dc:creator>stayhydrated</dc:creator>
      <dc:date>2021-06-01T17:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate Excel output: Variable name to the left of the categorical levels of the variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Excel-output-Variable-name-to-the-left-of-the/m-p/745111#M233532</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;Your F and your M look really strange!&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 09:41:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Excel-output-Variable-name-to-the-left-of-the/m-p/745111#M233532</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-06-02T09:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate Excel output: Variable name to the left of the categorical levels of the variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Excel-output-Variable-name-to-the-left-of-the/m-p/745136#M233536</link>
      <description>Yeah. It is Chinese F and M. I am using sas in Chinese version .</description>
      <pubDate>Wed, 02 Jun 2021 11:28:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Excel-output-Variable-name-to-the-left-of-the/m-p/745136#M233536</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-06-02T11:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate Excel output: Variable name to the left of the categorical levels of the variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Excel-output-Variable-name-to-the-left-of-the/m-p/745356#M233612</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;Yes. I was being facetious &lt;FONT size="4"&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 22:47:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Excel-output-Variable-name-to-the-left-of-the/m-p/745356#M233612</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-06-02T22:47:08Z</dc:date>
    </item>
  </channel>
</rss>

