<?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 code not missing and not populated into one line in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/code-not-missing-and-not-populated-into-one-line/m-p/123624#M33974</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp; I've been given a business task to code, and although in Englisgh it's simple and doable, the code in SAS is a little harder...&lt;/P&gt;&lt;P&gt;So I resorted to this site for the help.&amp;nbsp; I'm tryin gto code this in SAS (preferably not SQL, but that's fine too):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Ab_Flag =&amp;gt; 3 and ID is populated and not(UN_NO &amp;gt; ' '&amp;nbsp; and UDD_NO is not populated))&lt;/P&gt;&lt;P&gt;If these conditions satisfy, then create a new flag (New_Flag = 'Yes')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all your help..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Sep 2012 16:23:24 GMT</pubDate>
    <dc:creator>podarum</dc:creator>
    <dc:date>2012-09-17T16:23:24Z</dc:date>
    <item>
      <title>code not missing and not populated into one line</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/code-not-missing-and-not-populated-into-one-line/m-p/123624#M33974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp; I've been given a business task to code, and although in Englisgh it's simple and doable, the code in SAS is a little harder...&lt;/P&gt;&lt;P&gt;So I resorted to this site for the help.&amp;nbsp; I'm tryin gto code this in SAS (preferably not SQL, but that's fine too):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Ab_Flag =&amp;gt; 3 and ID is populated and not(UN_NO &amp;gt; ' '&amp;nbsp; and UDD_NO is not populated))&lt;/P&gt;&lt;P&gt;If these conditions satisfy, then create a new flag (New_Flag = 'Yes')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all your help..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 16:23:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/code-not-missing-and-not-populated-into-one-line/m-p/123624#M33974</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2012-09-17T16:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: code not missing and not populated into one line</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/code-not-missing-and-not-populated-into-one-line/m-p/123625#M33975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should post an example of the data you have and your expected output. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it appears a simple criteria:&lt;/P&gt;&lt;P&gt;new_flag='No';&lt;/P&gt;&lt;P&gt;if ab_flag&amp;gt;3 and not missint(id) and not(not missing(un_no) and missing(udd_no)) then new_flag='Yes';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 16:46:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/code-not-missing-and-not-populated-into-one-line/m-p/123625#M33975</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-09-17T16:46:07Z</dc:date>
    </item>
  </channel>
</rss>

