<?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 Finding length in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Finding-length/m-p/74573#M16068</link>
    <description>Hi all,&lt;BR /&gt;
In a detaset If I want to find out length of particular column in distinct and in descending order then how I will do this by using macro queries?&lt;BR /&gt;
Please help me out.&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
    <pubDate>Thu, 19 Feb 2009 02:20:40 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-02-19T02:20:40Z</dc:date>
    <item>
      <title>Finding length</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Finding-length/m-p/74573#M16068</link>
      <description>Hi all,&lt;BR /&gt;
In a detaset If I want to find out length of particular column in distinct and in descending order then how I will do this by using macro queries?&lt;BR /&gt;
Please help me out.&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Thu, 19 Feb 2009 02:20:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Finding-length/m-p/74573#M16068</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-02-19T02:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Finding length</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Finding-length/m-p/74574#M16069</link>
      <description>I'm not sure why you want it in a macro but if an SQL will do.&lt;BR /&gt;
&lt;BR /&gt;
 proc sql;&lt;BR /&gt;
   select distinct length(&lt;VARNAME&gt;) as varlong from &lt;DATASET&gt;&lt;BR /&gt;
   order by varlong descending;&lt;BR /&gt;
quit;&lt;/DATASET&gt;&lt;/VARNAME&gt;</description>
      <pubDate>Thu, 19 Feb 2009 12:52:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Finding-length/m-p/74574#M16069</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2009-02-19T12:52:08Z</dc:date>
    </item>
  </channel>
</rss>

