<?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: Converting columns to rows in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Converting-columns-to-rows/m-p/830445#M328144</link>
    <description>&lt;P&gt;Since you have no observations you just want the column names or list of variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Query that from sashelp.vcolumn instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data varList;
set sashelp.vcolumn;
*values must be uppercase;
where libname='WORK' and memname='HAVE';
keep name;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/432345"&gt;@Gadde&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a dataset which has 88 columns and 0 rows. I would like to convert all the columns into rows? Would you be so kind as to help with this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I really appreciate your guidance!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Aug 2022 21:18:50 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2022-08-25T21:18:50Z</dc:date>
    <item>
      <title>Converting columns to rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-columns-to-rows/m-p/830438#M328138</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset which has 88 columns and 0 rows. I would like to convert all the columns into rows? Would you be so kind as to help with this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really appreciate your guidance!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 20:48:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-columns-to-rows/m-p/830438#M328138</guid>
      <dc:creator>Gadde</dc:creator>
      <dc:date>2022-08-25T20:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Converting columns to rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-columns-to-rows/m-p/830440#M328140</link>
      <description>&lt;P&gt;If you have 0 rows, there is nothing to convert.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 20:55:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-columns-to-rows/m-p/830440#M328140</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-08-25T20:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Converting columns to rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-columns-to-rows/m-p/830442#M328141</link>
      <description>I wanted to change variables into observations&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Aug 2022 20:56:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-columns-to-rows/m-p/830442#M328141</guid>
      <dc:creator>Gadde</dc:creator>
      <dc:date>2022-08-25T20:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Converting columns to rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-columns-to-rows/m-p/830445#M328144</link>
      <description>&lt;P&gt;Since you have no observations you just want the column names or list of variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Query that from sashelp.vcolumn instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data varList;
set sashelp.vcolumn;
*values must be uppercase;
where libname='WORK' and memname='HAVE';
keep name;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/432345"&gt;@Gadde&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a dataset which has 88 columns and 0 rows. I would like to convert all the columns into rows? Would you be so kind as to help with this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I really appreciate your guidance!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 21:18:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-columns-to-rows/m-p/830445#M328144</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-08-25T21:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Converting columns to rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-columns-to-rows/m-p/830491#M328162</link>
      <description>&lt;P&gt;Example for sashelp.class:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
  create table want as
    select Name
      from sashelp.vcolumn
      where libname = 'SASHELP' and memname = 'CLASS'
  ;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Aug 2022 06:51:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-columns-to-rows/m-p/830491#M328162</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-08-26T06:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Converting columns to rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-columns-to-rows/m-p/830498#M328164</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/432345"&gt;@Gadde&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can do this with &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n1xno5xgs39b70n0zydov0owajj8.htm" target="_blank" rel="noopener"&gt;PROC TRANSPOSE&lt;/A&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc transpose data=have out=want;
var _all_;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Aug 2022 07:23:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-columns-to-rows/m-p/830498#M328164</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2022-08-26T07:23:55Z</dc:date>
    </item>
  </channel>
</rss>

