<?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 transpose by numerical variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-transpose-by-numerical-variable/m-p/413171#M279933</link>
    <description>&lt;P&gt;Yes, that was all it needed I guess. Thank you!&lt;/P&gt;</description>
    <pubDate>Tue, 14 Nov 2017 02:30:13 GMT</pubDate>
    <dc:creator>HSM9</dc:creator>
    <dc:date>2017-11-14T02:30:13Z</dc:date>
    <item>
      <title>proc transpose by numerical variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-transpose-by-numerical-variable/m-p/413165#M279930</link>
      <description>&lt;P&gt;What do I need to add in this code to have the HtFt values be organized based on the year? The code I have now just puts the variables in columns, but not in the correct one by year. How do I specify this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data work.Trees;&lt;BR /&gt;infile datalines delimiter = ',';&lt;BR /&gt;input Type :$6.&lt;BR /&gt;Year :4.&lt;BR /&gt;HtFt :2.&lt;BR /&gt;;&lt;BR /&gt;datalines;&lt;BR /&gt;Aspen,2009,15&lt;BR /&gt;Aspen,2010,16&lt;BR /&gt;Maple,2010,6&lt;BR /&gt;Maple,2011,8&lt;BR /&gt;Maple,2012,10&lt;BR /&gt;Spruce,2009,22&lt;BR /&gt;Spruce,2010,23&lt;BR /&gt;Spruce,2011,24&lt;BR /&gt;Spruce,2012,25&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;proc transpose&lt;BR /&gt;data = work.Trees&lt;BR /&gt;out = work.TreesWide;&lt;BR /&gt;by Type;&lt;BR /&gt;var HtFt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 02:12:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-transpose-by-numerical-variable/m-p/413165#M279930</guid>
      <dc:creator>HSM9</dc:creator>
      <dc:date>2017-11-14T02:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: proc transpose by numerical variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-transpose-by-numerical-variable/m-p/413167#M279931</link>
      <description>&lt;P&gt;Add the statement :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ID year;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 02:16:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-transpose-by-numerical-variable/m-p/413167#M279931</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-11-14T02:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: proc transpose by numerical variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-transpose-by-numerical-variable/m-p/413169#M279932</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;The code I have now just puts the variables in columns, but not in the correct one by year.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Are you sure about that?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can the ID with PREFIX and/or IDLABEL options but if they're in the wrong place this won't fix that.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/177413"&gt;@HSM9&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;What do I need to add in this code to have the HtFt values be organized based on the year? The code I have now just puts the variables in columns, but not in the correct one by year. How do I specify this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data work.Trees;&lt;BR /&gt;infile datalines delimiter = ',';&lt;BR /&gt;input Type :$6.&lt;BR /&gt;Year :4.&lt;BR /&gt;HtFt :2.&lt;BR /&gt;;&lt;BR /&gt;datalines;&lt;BR /&gt;Aspen,2009,15&lt;BR /&gt;Aspen,2010,16&lt;BR /&gt;Maple,2010,6&lt;BR /&gt;Maple,2011,8&lt;BR /&gt;Maple,2012,10&lt;BR /&gt;Spruce,2009,22&lt;BR /&gt;Spruce,2010,23&lt;BR /&gt;Spruce,2011,24&lt;BR /&gt;Spruce,2012,25&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;proc transpose&lt;BR /&gt;data = work.Trees&lt;BR /&gt;out = work.TreesWide;&lt;BR /&gt;by Type;&lt;BR /&gt;var HtFt;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 02:20:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-transpose-by-numerical-variable/m-p/413169#M279932</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-14T02:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: proc transpose by numerical variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-transpose-by-numerical-variable/m-p/413171#M279933</link>
      <description>&lt;P&gt;Yes, that was all it needed I guess. Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 02:30:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-transpose-by-numerical-variable/m-p/413171#M279933</guid>
      <dc:creator>HSM9</dc:creator>
      <dc:date>2017-11-14T02:30:13Z</dc:date>
    </item>
  </channel>
</rss>

