<?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: Finding results with a length &amp;gt; 3 in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Finding-results-with-a-length-gt-3/m-p/292876#M20008</link>
    <description>&lt;P&gt;I think this is what you're after:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data have;&lt;BR /&gt;length ClaimScheduleId $8;&lt;BR /&gt;input ClaimScheduleId;&lt;BR /&gt;cards;&lt;BR /&gt;AB&lt;BR /&gt;ABC&lt;BR /&gt;ABCD&lt;BR /&gt;ABCDE&lt;BR /&gt;run;&lt;BR /&gt;proc sql noprint;&lt;BR /&gt;create table want as&lt;BR /&gt;select * from have&lt;BR /&gt;where length(strip(ClaimScheduleId)) &amp;gt;= 3;&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 20 Aug 2016 01:58:52 GMT</pubDate>
    <dc:creator>TomKari</dc:creator>
    <dc:date>2016-08-20T01:58:52Z</dc:date>
    <item>
      <title>Finding results with a length &gt; 3</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Finding-results-with-a-length-gt-3/m-p/292785#M20004</link>
      <description>&lt;P&gt;Hi. &amp;nbsp;I am working with a dataset where I need to find the length of one of the variables is greater than 3. &amp;nbsp;I was successful in writing the code where the length = 3. &amp;nbsp;Now I need the rest. &amp;nbsp;Could someone help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table DOJ.PMHS_MS_CC as&lt;BR /&gt;select length(a.ClaimScheduleId,3) as ClaimScheduleId, b.ScheduleName, b.ScheduleTypeCode&lt;BR /&gt;from doj.new_Qtrly_ClaimSchedule a&lt;BR /&gt;inner join doj.Cur_ClmSchNmTy b&lt;BR /&gt;on a.ClaimScheduleId = b.FeeScheduleId&lt;BR /&gt;where b.ScheduleTypeCode in ('MS', 'CC')&lt;BR /&gt;;quit;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 17:09:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Finding-results-with-a-length-gt-3/m-p/292785#M20004</guid>
      <dc:creator>Laurel</dc:creator>
      <dc:date>2016-08-19T17:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: Finding results with a length &gt; 3</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Finding-results-with-a-length-gt-3/m-p/292787#M20005</link>
      <description>&lt;P&gt;I was wrong. My original code didn't work. &amp;nbsp;I'm looking for ClaimScheduleId where the length = 3 and the matching ScheduleName and ScheduleTypeCode. &amp;nbsp;Then I need to make another table where the ClaimScheduleId length &amp;gt;3&amp;nbsp;&lt;SPAN&gt;and the matching ScheduleName and ScheduleTypeCode. &amp;nbsp;Could someone help me? &amp;nbsp;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 17:16:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Finding-results-with-a-length-gt-3/m-p/292787#M20005</guid>
      <dc:creator>Laurel</dc:creator>
      <dc:date>2016-08-19T17:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Finding results with a length &gt; 3</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Finding-results-with-a-length-gt-3/m-p/292788#M20006</link>
      <description>&lt;P&gt;Are you trying to find one or more variables in a dataset whose defined length is greater than 3 or are you trying to find values of a specific variable that have a length greater than 3?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If looking for values then finding values with length 3:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
   create table DOJ.PMHS_MS_CC as
   select ClaimScheduleId, b.ScheduleName, b.ScheduleTypeCode
   from doj.new_Qtrly_ClaimSchedule a
   inner join doj.Cur_ClmSchNmTy b
   on a.ClaimScheduleId = b.FeeScheduleId
   where b.ScheduleTypeCode in ('MS', 'CC') 
         and length(ClaimScheduleId)=3
   ;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;to find &amp;gt; 3 change the = to &amp;gt; in the last comparison&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 17:21:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Finding-results-with-a-length-gt-3/m-p/292788#M20006</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-08-19T17:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Finding results with a length &gt; 3</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Finding-results-with-a-length-gt-3/m-p/292789#M20007</link>
      <description>&lt;P&gt;I am trying to find the values of the specific variable ClaimScheduleId that has a length greater than 3.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 17:20:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Finding-results-with-a-length-gt-3/m-p/292789#M20007</guid>
      <dc:creator>Laurel</dc:creator>
      <dc:date>2016-08-19T17:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Finding results with a length &gt; 3</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Finding-results-with-a-length-gt-3/m-p/292876#M20008</link>
      <description>&lt;P&gt;I think this is what you're after:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data have;&lt;BR /&gt;length ClaimScheduleId $8;&lt;BR /&gt;input ClaimScheduleId;&lt;BR /&gt;cards;&lt;BR /&gt;AB&lt;BR /&gt;ABC&lt;BR /&gt;ABCD&lt;BR /&gt;ABCDE&lt;BR /&gt;run;&lt;BR /&gt;proc sql noprint;&lt;BR /&gt;create table want as&lt;BR /&gt;select * from have&lt;BR /&gt;where length(strip(ClaimScheduleId)) &amp;gt;= 3;&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Aug 2016 01:58:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Finding-results-with-a-length-gt-3/m-p/292876#M20008</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2016-08-20T01:58:52Z</dc:date>
    </item>
  </channel>
</rss>

