<?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: IF THEN ELSE CONDITION ALL VARIABLES DATES in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/IF-THEN-ELSE-CONDITION-ALL-VARIABLES-DATES/m-p/587659#M167861</link>
    <description>&lt;P&gt;Please try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data pepito;
set pepito2;&lt;BR /&gt;DT_PEPITO=coalesce(DT_SS,DT_SENT);&lt;BR /&gt;format DT_PEPITO date9.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 10 Sep 2019 19:51:39 GMT</pubDate>
    <dc:creator>Jagadishkatam</dc:creator>
    <dc:date>2019-09-10T19:51:39Z</dc:date>
    <item>
      <title>IF THEN ELSE CONDITION ALL VARIABLES DATES</title>
      <link>https://communities.sas.com/t5/SAS-Programming/IF-THEN-ELSE-CONDITION-ALL-VARIABLES-DATES/m-p/587657#M167859</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data pepito;
format dt_pepito DDMMYY10.;
input dt_pepito DDMMYY10.;
if DT_SS ne ' ' and DT_SENT ne ' ' then DT_SENT as DT_PEPITO;
if DT_SS ne ' ' and DT_SENT = ''  then DT_SENT as DT_PEPITO;
if DT_SS eq ' ' and DT_SENT ne ' ' then DT_SENT as DT_PEPITO;
else 'review';
set pepito2;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have import the file with DT_SS and DT_Sent and I''m trying to create DT_PEPITO.&lt;/P&gt;&lt;P&gt;DT_SS AS&amp;nbsp;DDMMYY10.&lt;/P&gt;&lt;P&gt;DT_SENT AS&amp;nbsp;DDMMYY10.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone help me, please?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pepito.png" style="width: 397px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32361iA0C4CF279D3BF933/image-size/large?v=v2&amp;amp;px=999" role="button" title="pepito.png" alt="pepito.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And SAS give me errors that I don't know how to solve it.&lt;/P&gt;&lt;P&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;&lt;P&gt;ERROR: Variable dt_envio has been defined as both character and numeric.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 19:45:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/IF-THEN-ELSE-CONDITION-ALL-VARIABLES-DATES/m-p/587657#M167859</guid>
      <dc:creator>mary_2017</dc:creator>
      <dc:date>2019-09-10T19:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: IF THEN ELSE CONDITION ALL VARIABLES DATES</title>
      <link>https://communities.sas.com/t5/SAS-Programming/IF-THEN-ELSE-CONDITION-ALL-VARIABLES-DATES/m-p/587658#M167860</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/289435"&gt;@mary_2017&lt;/a&gt;&amp;nbsp; Welcome to SAS communities.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First off,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. What do you mean by import file i.e do you have raw external file that you need to import? If yes, what kind of file it is? Is it a delimited txt file or is it an excel or something else.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Once you import, i.e that is converted your raw external file to a SAS dataset form, what is that you are trying to accomplish, meaning logic?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Please do not paste pictures of your sample as lazy people like me wouldn't bother to create a sample by typing letter by letter or word by word and then write a code and test it for you. So please post as plain text that we can copy/paste&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4. Post a clean sample of what you HAVE, what you WANT and logic to get the WANT.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's all we ask. Cheers!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 19:51:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/IF-THEN-ELSE-CONDITION-ALL-VARIABLES-DATES/m-p/587658#M167860</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-09-10T19:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: IF THEN ELSE CONDITION ALL VARIABLES DATES</title>
      <link>https://communities.sas.com/t5/SAS-Programming/IF-THEN-ELSE-CONDITION-ALL-VARIABLES-DATES/m-p/587659#M167861</link>
      <description>&lt;P&gt;Please try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data pepito;
set pepito2;&lt;BR /&gt;DT_PEPITO=coalesce(DT_SS,DT_SENT);&lt;BR /&gt;format DT_PEPITO date9.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Sep 2019 19:51:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/IF-THEN-ELSE-CONDITION-ALL-VARIABLES-DATES/m-p/587659#M167861</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2019-09-10T19:51:39Z</dc:date>
    </item>
  </channel>
</rss>

