<?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: Sort data into a table in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Sort-data-into-a-table/m-p/715728#M221102</link>
    <description>&lt;P&gt;My third footnote links to a macro that converts datasets to data step code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A simple data step for your dataset will look like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data mktcap6yrs;
length
  reits $8
  cy 8
  dsname $41
  me_group 8
;
input
  reits
  cy
  dsname
  me_group
;
datalines;
AAREIT 834849900 WORK.YR16 1
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Add additional datalines as needed to illustrate your task.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Feb 2021 08:29:14 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2021-02-01T08:29:14Z</dc:date>
    <item>
      <title>Sort data into a table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sort-data-into-a-table/m-p/715186#M220893</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used proc rank 'group=5'. Based on the 'varrank', how do i sort the data such that each table lists 'CY' variables under each rank per dsname grouping?&lt;/P&gt;&lt;P&gt;i.e. i have data from work.yr16 to yr20.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the assistance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 08:45:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sort-data-into-a-table/m-p/715186#M220893</guid>
      <dc:creator>igsteo</dc:creator>
      <dc:date>2021-02-03T08:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sort data into a table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sort-data-into-a-table/m-p/715187#M220894</link>
      <description>&lt;P&gt;Please post more of your data and what you want the result to look like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Makes it much easier to help you.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 07:02:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sort-data-into-a-table/m-p/715187#M220894</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2021-01-29T07:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sort data into a table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sort-data-into-a-table/m-p/715200#M220901</link>
      <description>&lt;P&gt;And we always ask people to post data in usable form. Pictures are NOT usable.&lt;/P&gt;
&lt;P&gt;Post your data as code, in a data step with datalines.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 08:18:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sort-data-into-a-table/m-p/715200#M220901</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-01-29T08:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sort data into a table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sort-data-into-a-table/m-p/715201#M220902</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc rank  data=iglib.mktcap6yrs groups=5
   out=rankedME;
   by dsname;
   var CY;
   ranks varrank;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;apologies, here are the codes&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 08:21:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sort-data-into-a-table/m-p/715201#M220902</guid>
      <dc:creator>igsteo</dc:creator>
      <dc:date>2021-01-29T08:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sort data into a table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sort-data-into-a-table/m-p/715204#M220904</link>
      <description>&lt;P&gt;Please supply dataset&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;mktcap6yrs&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;in a data step with datalines.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 08:31:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sort-data-into-a-table/m-p/715204#M220904</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-01-29T08:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sort data into a table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sort-data-into-a-table/m-p/715699#M221088</link>
      <description>&lt;P&gt;I'm not sure how to convert the data into datalines. i have a few hundred datalines.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 02:52:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sort-data-into-a-table/m-p/715699#M221088</guid>
      <dc:creator>igsteo</dc:creator>
      <dc:date>2021-02-01T02:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sort data into a table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sort-data-into-a-table/m-p/715728#M221102</link>
      <description>&lt;P&gt;My third footnote links to a macro that converts datasets to data step code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A simple data step for your dataset will look like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data mktcap6yrs;
length
  reits $8
  cy 8
  dsname $41
  me_group 8
;
input
  reits
  cy
  dsname
  me_group
;
datalines;
AAREIT 834849900 WORK.YR16 1
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Add additional datalines as needed to illustrate your task.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 08:29:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sort-data-into-a-table/m-p/715728#M221102</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-02-01T08:29:14Z</dc:date>
    </item>
  </channel>
</rss>

