<?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: 1 Variable and Present as Row in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-1-Variable-and-Present-as-Row/m-p/237104#M55307</link>
    <description>&lt;P&gt;Would it be possible to share some of your data as sample and tell us how you expect the output to look like?&lt;/P&gt;</description>
    <pubDate>Tue, 01 Dec 2015 06:27:32 GMT</pubDate>
    <dc:creator>kannand</dc:creator>
    <dc:date>2015-12-01T06:27:32Z</dc:date>
    <item>
      <title>Proc Tabulate: 1 Variable and Present as Row</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-1-Variable-and-Present-as-Row/m-p/237103#M55306</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using SAS 7.1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I only have 1 variable, but instead of presenting in column, I want in ROWS. How do I do that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 06:17:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-1-Variable-and-Present-as-Row/m-p/237103#M55306</guid>
      <dc:creator>apple</dc:creator>
      <dc:date>2015-12-01T06:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate: 1 Variable and Present as Row</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-1-Variable-and-Present-as-Row/m-p/237104#M55307</link>
      <description>&lt;P&gt;Would it be possible to share some of your data as sample and tell us how you expect the output to look like?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 06:27:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-1-Variable-and-Present-as-Row/m-p/237104#M55307</guid>
      <dc:creator>kannand</dc:creator>
      <dc:date>2015-12-01T06:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate: 1 Variable and Present as Row</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-1-Variable-and-Present-as-Row/m-p/237109#M55309</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;THank you for the reply.&lt;/P&gt;
&lt;P&gt;I have attached a sample.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I could do a transpose paste in excel, but as I have many tables it becomes tedious. Hence would prefer that SAS generate the tables as ROWS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;THank you&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 07:26:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-1-Variable-and-Present-as-Row/m-p/237109#M55309</guid>
      <dc:creator>apple</dc:creator>
      <dc:date>2015-12-01T07:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate: 1 Variable and Present as Row</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-1-Variable-and-Present-as-Row/m-p/237118#M55310</link>
      <description>&lt;P&gt;Here is something you may clone to your specific needs.... This is just one way of getting the output you desire... a bit lengthy but simple code....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input v1:$5. v2:$5. v3:$5. v4:$5.;
datalines;
Tom Peter Henry Jack 
100 101 102 103
;
run;

data name;
 set have;
 if _n_ = 1;
run;
proc transpose data=name out=names(drop=_name_);
  var v1 v2 v3 v4;
run;
data id;
 set have;
 if _n_ = 2;
run;
proc transpose data=id out=ids(drop=_name_);
  var v1 v2 v3 v4;
run;
data final;
 set names(rename=(col1=name));
 set ids(rename=(col1=id));
run;
proc print data=final;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It produces the following output for your reference...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Obs	name	id
1	Tom	100
2	Peter	101
3	Henry	102
4	Jack	103&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hope this helps...!!! Good Luck...!!!&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 08:31:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-1-Variable-and-Present-as-Row/m-p/237118#M55310</guid>
      <dc:creator>kannand</dc:creator>
      <dc:date>2015-12-01T08:31:19Z</dc:date>
    </item>
  </channel>
</rss>

