<?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: Syntax for 'in' and 'keep' statements in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Syntax-for-in-and-keep-statements/m-p/183903#M34934</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ballard. Thats it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Apr 2014 16:44:05 GMT</pubDate>
    <dc:creator>Paul_NYS</dc:creator>
    <dc:date>2014-04-17T16:44:05Z</dc:date>
    <item>
      <title>Syntax for 'in' and 'keep' statements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Syntax-for-in-and-keep-statements/m-p/183901#M34932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have tried every variation that I can think of for a combined 'keep' and 'in' statements (below in bold) for one data set in a merge function and can't seem to get it to run. Anyone done this prior?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data courtevents1ee (rename=judge_entity_id=agecat4);&lt;/P&gt;&lt;P&gt;length judge_entity_id 8;&lt;/P&gt;&lt;P&gt;merge&lt;STRONG&gt; s1 (keep=start stop exit entity_id durat gender spellage docket1 (in=a))&lt;/STRONG&gt; courtevents (keep=entity_id edate judge_entity_id judge_type ucms_table);&lt;/P&gt;&lt;P&gt;by entity_id;&lt;/P&gt;&lt;P&gt;if a;&lt;/P&gt;&lt;P&gt;format start mmddyy10.;&lt;/P&gt;&lt;P&gt;format edate mmddyy10.;&lt;/P&gt;&lt;P&gt;format stop mmddyy10.;&lt;/P&gt;&lt;P&gt;if edate ge start;&lt;/P&gt;&lt;P&gt;if edate le stop;&lt;/P&gt;&lt;P&gt;if ucms_table="APPEARANCE";&lt;/P&gt;&lt;P&gt;/*if exit ne "ZTC" then do;&lt;/P&gt;&lt;P&gt;if edate le stop;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;if not missing(judge_entity_id);&lt;/P&gt;&lt;P&gt;count=1;&lt;/P&gt;&lt;P&gt;drop agecat4 ucms_table;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 16:28:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Syntax-for-in-and-keep-statements/m-p/183901#M34932</guid>
      <dc:creator>Paul_NYS</dc:creator>
      <dc:date>2014-04-17T16:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for 'in' and 'keep' statements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Syntax-for-in-and-keep-statements/m-p/183902#M34933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The IN=A doesn't want the () around it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 16:38:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Syntax-for-in-and-keep-statements/m-p/183902#M34933</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-04-17T16:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for 'in' and 'keep' statements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Syntax-for-in-and-keep-statements/m-p/183903#M34934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ballard. Thats it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 16:44:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Syntax-for-in-and-keep-statements/m-p/183903#M34934</guid>
      <dc:creator>Paul_NYS</dc:creator>
      <dc:date>2014-04-17T16:44:05Z</dc:date>
    </item>
  </channel>
</rss>

