<?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 SAS Enterprise 2 Columns - using advanced expression to bring over date - Help Please in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SAS-Enterprise-2-Columns-using-advanced-expression-to-bring-over/m-p/527220#M5250</link>
    <description>&lt;P&gt;I have two columns.&amp;nbsp; One has a code for inspections, the second has the dates of the inspections.&amp;nbsp; If the code is CM then I want it to return the date, if not I want it to be blank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I don't know what to put in the "XXX" below so it returns a blank.&amp;nbsp;&amp;nbsp;I know it's not "" as it is a numeric expression and I know not to put a 0 or 1.&amp;nbsp; I'm sorry I can't seem to get this one down.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ifn(t1.MSAI_STAT_CD="CM", t1.MSAI_STAT_DT,&lt;FONT color="#3366FF"&gt; XXX&lt;/FONT&gt;)&lt;/P&gt;</description>
    <pubDate>Tue, 15 Jan 2019 06:10:39 GMT</pubDate>
    <dc:creator>maliksmom2000</dc:creator>
    <dc:date>2019-01-15T06:10:39Z</dc:date>
    <item>
      <title>SAS Enterprise 2 Columns - using advanced expression to bring over date - Help Please</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Enterprise-2-Columns-using-advanced-expression-to-bring-over/m-p/527220#M5250</link>
      <description>&lt;P&gt;I have two columns.&amp;nbsp; One has a code for inspections, the second has the dates of the inspections.&amp;nbsp; If the code is CM then I want it to return the date, if not I want it to be blank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I don't know what to put in the "XXX" below so it returns a blank.&amp;nbsp;&amp;nbsp;I know it's not "" as it is a numeric expression and I know not to put a 0 or 1.&amp;nbsp; I'm sorry I can't seem to get this one down.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ifn(t1.MSAI_STAT_CD="CM", t1.MSAI_STAT_DT,&lt;FONT color="#3366FF"&gt; XXX&lt;/FONT&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 06:10:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Enterprise-2-Columns-using-advanced-expression-to-bring-over/m-p/527220#M5250</guid>
      <dc:creator>maliksmom2000</dc:creator>
      <dc:date>2019-01-15T06:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Enterprise 2 Columns - using advanced expression to bring over date - Help Please</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Enterprise-2-Columns-using-advanced-expression-to-bring-over/m-p/527225#M5251</link>
      <description>&lt;P&gt;A period is the symbol for numeric missing values, no quotes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In SQL it’s more conventional to use CASE statements instead of IFN. For one, if you or someone ever needs to migrate this to a different SQL implementation this makes it much easier.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/168338"&gt;@maliksmom2000&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have two columns.&amp;nbsp; One has a code for inspections, the second has the dates of the inspections.&amp;nbsp; If the code is CM then I want it to return the date, if not I want it to be blank.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I don't know what to put in the "XXX" below so it returns a blank.&amp;nbsp;&amp;nbsp;I know it's not "" as it is a numeric expression and I know not to put a 0 or 1.&amp;nbsp; I'm sorry I can't seem to get this one down.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ifn(t1.MSAI_STAT_CD="CM", t1.MSAI_STAT_DT,&lt;FONT color="#3366FF"&gt; XXX&lt;/FONT&gt;)&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 06:44:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Enterprise-2-Columns-using-advanced-expression-to-bring-over/m-p/527225#M5251</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-15T06:44:35Z</dc:date>
    </item>
  </channel>
</rss>

