<?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: Tranposing a Table - Columns to Rows in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tranposing-a-Table-Columns-to-Rows/m-p/369240#M24147</link>
    <description>&lt;P&gt;It helps to provide example data, not as Excel, many of us don't want to open such files from unknown sources. Show what you have and what you want.&lt;/P&gt;
&lt;P&gt;SAS has a procedure named transpose that has the purpose of reshaping data as you request but the devil is in the details.&lt;/P&gt;
&lt;P&gt;For instance are your "row labels", such is not a concept for SAS data sets, text or numeric? Since the variables (columns) are restricted in naming your desired values may not work because variable names must start with _ or letter (not numerals) and the other characters may only be letters, digits or the _ character with a limit of 32 characters. HOWEVER SAS has the concept of a variable label with can be quite longer and is used to provide nice displays in most procedures or output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I recommend starting with the SAS online help if installed.&amp;nbsp;There is a section title 'Learning to Use SAS' which has example programs and data.&lt;/P&gt;
&lt;P&gt;There is also some free on line classes available at: &lt;A href="https://support.sas.com/edu/elearning.html?ctry=us&amp;amp;productType=library" target="_blank"&gt;https://support.sas.com/edu/elearning.html?ctry=us&amp;amp;productType=library&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jun 2017 17:48:27 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-06-21T17:48:27Z</dc:date>
    <item>
      <title>Tranposing a Table - Columns to Rows</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tranposing-a-Table-Columns-to-Rows/m-p/369234#M24145</link>
      <description>&lt;P&gt;Hello ang good day everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am very new to EG.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have&amp;nbsp;several SAS data sets that I would like to adjust.&amp;nbsp;For some I&amp;nbsp;would like to take the row headers&amp;nbsp;and put them into column headers, and others I would like to put the column headers and move them into row headers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help with this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, any good books I can get to help me with working through examples?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your feedback.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 17:35:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tranposing-a-Table-Columns-to-Rows/m-p/369234#M24145</guid>
      <dc:creator>Pinkboss</dc:creator>
      <dc:date>2017-06-21T17:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Tranposing a Table - Columns to Rows</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tranposing-a-Table-Columns-to-Rows/m-p/369240#M24147</link>
      <description>&lt;P&gt;It helps to provide example data, not as Excel, many of us don't want to open such files from unknown sources. Show what you have and what you want.&lt;/P&gt;
&lt;P&gt;SAS has a procedure named transpose that has the purpose of reshaping data as you request but the devil is in the details.&lt;/P&gt;
&lt;P&gt;For instance are your "row labels", such is not a concept for SAS data sets, text or numeric? Since the variables (columns) are restricted in naming your desired values may not work because variable names must start with _ or letter (not numerals) and the other characters may only be letters, digits or the _ character with a limit of 32 characters. HOWEVER SAS has the concept of a variable label with can be quite longer and is used to provide nice displays in most procedures or output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I recommend starting with the SAS online help if installed.&amp;nbsp;There is a section title 'Learning to Use SAS' which has example programs and data.&lt;/P&gt;
&lt;P&gt;There is also some free on line classes available at: &lt;A href="https://support.sas.com/edu/elearning.html?ctry=us&amp;amp;productType=library" target="_blank"&gt;https://support.sas.com/edu/elearning.html?ctry=us&amp;amp;productType=library&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 17:48:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tranposing-a-Table-Columns-to-Rows/m-p/369240#M24147</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-21T17:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Tranposing a Table - Columns to Rows</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tranposing-a-Table-Columns-to-Rows/m-p/369252#M24148</link>
      <description>&lt;A href="https://stats.idre.ucla.edu/sas/modules/" target="_blank"&gt;https://stats.idre.ucla.edu/sas/modules/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The bottom of the page has specific links on transforming your data - ie long to wide and wide to long&lt;BR /&gt;&lt;BR /&gt;Classic Data Management Problems&lt;BR /&gt;Merging Data Files via Data Step, Proc SQL&lt;BR /&gt;Concatenating (stacking) SAS data files&lt;BR /&gt;Working across variables&lt;BR /&gt;Collapsing across observations in SAS via Proc Means, Proc SQL , Data Step I , Data Step II &lt;BR /&gt;Reshaping data from wide to long via Proc Transpose , Data Step&lt;BR /&gt;Reshaping data from long to wide via Proc Transpose , Data Step</description>
      <pubDate>Wed, 21 Jun 2017 18:09:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tranposing-a-Table-Columns-to-Rows/m-p/369252#M24148</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-21T18:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Tranposing a Table - Columns to Rows</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tranposing-a-Table-Columns-to-Rows/m-p/369287#M24150</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the data that I'm looking at as an example. I have placed it as a attachment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the quick response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13970i55FE91DEC6AD8762/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="SAS Photo.JPG" title="SAS Photo.JPG" /&gt;</description>
      <pubDate>Wed, 21 Jun 2017 19:18:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tranposing-a-Table-Columns-to-Rows/m-p/369287#M24150</guid>
      <dc:creator>Pinkboss</dc:creator>
      <dc:date>2017-06-21T19:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Tranposing a Table - Columns to Rows</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tranposing-a-Table-Columns-to-Rows/m-p/369293#M24151</link>
      <description>&lt;P&gt;You showed us a data set. That's great. Now what are you trying to do with it?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that if you ever want code as a solution and you post an image, how would you expect us to work with the image. Based on what you've provided, the answer stands as it is. Please see the links in my previous post.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 19:27:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tranposing-a-Table-Columns-to-Rows/m-p/369293#M24151</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-21T19:27:19Z</dc:date>
    </item>
  </channel>
</rss>

