<?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: how to validate datetime column? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-validate-datetime-column/m-p/126831#M294388</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all for ur reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing an issue in all client machines.So I cant able to run any job.&lt;/P&gt;&lt;P&gt;I will try tis ,once the issue is resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u&amp;nbsp; pls help me in resolving this issue.&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/thread/47658" title="https://communities.sas.com/thread/47658"&gt;https://communities.sas.com/thread/47658&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Jul 2013 04:03:34 GMT</pubDate>
    <dc:creator>Helannivas</dc:creator>
    <dc:date>2013-07-06T04:03:34Z</dc:date>
    <item>
      <title>how to validate datetime column?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-validate-datetime-column/m-p/126826#M294383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have some source columns like(For Eg.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Process_Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jun 01 2013 6.40pm&lt;/P&gt;&lt;P&gt;Feb 14 2012 7.25am&lt;/P&gt;&lt;P&gt;Mar 28 2011 3.40pm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to validate this column,whether tis date is correct date or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then,I need to load this date column to target as (DD/MM/YYYY). like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;01/06/2013&lt;/P&gt;&lt;P&gt;14/02/2012&lt;/P&gt;&lt;P&gt;28/03/2011&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do this in SAS DI Studio?Kindly help me on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2013 16:50:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-validate-datetime-column/m-p/126826#M294383</guid>
      <dc:creator>Helannivas</dc:creator>
      <dc:date>2013-07-04T16:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to validate datetime column?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-validate-datetime-column/m-p/126827#M294384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Helann,&lt;/P&gt;&lt;P&gt;Please try ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have ;&lt;BR /&gt;input test_date $20. ;&lt;BR /&gt;cards;&lt;BR /&gt;Jun 01 2013 6.40pm&lt;BR /&gt;Feb 14 2012 7.25am&lt;BR /&gt;Mar 28 2011 3.40pm&lt;BR /&gt;;run;&lt;/P&gt;&lt;P&gt;data want (drop = a b c d) ;&lt;BR /&gt;set have;&lt;BR /&gt;a = compress(upcase(substr(test_date,1,3)));&lt;BR /&gt;b = substr(test_date,5,2);&lt;BR /&gt;c = substr(test_date,8,4);&lt;BR /&gt;&amp;nbsp; if a = 'JAN' then d = 1;&lt;BR /&gt;else if a = 'FEB' then d = 2;&lt;BR /&gt;else if a = 'MAR' then d = 3;&lt;BR /&gt;else if a = 'APR' then d = 4;&lt;BR /&gt;else if a = 'MAY' then d = 5;&lt;BR /&gt;else if a = 'JUN' then d = 6;&lt;BR /&gt;else if a = 'JUL' then d = 7;&lt;BR /&gt;else if a = 'AUG' then d = 8;&lt;BR /&gt;else if a = 'SEP' then d = 9;&lt;BR /&gt;else if a = 'OCT' then d = 10;&lt;BR /&gt;else if a = 'NOV' then d = 11;&lt;BR /&gt;else if a = 'DEC' then d = 12;&lt;BR /&gt;Final_date&amp;nbsp; = mdy(d,b,c); &lt;BR /&gt;format Final_date ddmmyy10.;&lt;BR /&gt;Run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 05:49:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-validate-datetime-column/m-p/126827#M294384</guid>
      <dc:creator>sunilzood</dc:creator>
      <dc:date>2013-07-05T05:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to validate datetime column?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-validate-datetime-column/m-p/126828#M294385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;data have ;
input test_date &amp;amp; ?? anydtdtm. ;
date=datepart(test_date);
format date ddmmyy.;
cards;
Jun 01 2013 6.40pm
Feb 14 2012 7.25am
Mar 28 2011 3.40pm
;run;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 06:41:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-validate-datetime-column/m-p/126828#M294385</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2013-07-05T06:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to validate datetime column?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-validate-datetime-column/m-p/126829#M294386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good one Shap, I was expecting for a best Solution... Thanks.!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 07:08:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-validate-datetime-column/m-p/126829#M294386</guid>
      <dc:creator>sunilzood</dc:creator>
      <dc:date>2013-07-05T07:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to validate datetime column?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-validate-datetime-column/m-p/126830#M294387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming you start with an external file then you could define the Process_Date column with informat "anydtdte." and format "ddmmyy10." in the "external file" object.&lt;/P&gt;&lt;P&gt;Then use a "File Reader" and then a "Data Validation" transformation.&lt;/P&gt;&lt;P&gt;In the "Data Validation" transformation check for missings. All source values for "Process_Date" (the text strings) which couldn't be converted to a SAS date value will be missing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jul 2013 01:36:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-validate-datetime-column/m-p/126830#M294387</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-07-06T01:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to validate datetime column?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-validate-datetime-column/m-p/126831#M294388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all for ur reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing an issue in all client machines.So I cant able to run any job.&lt;/P&gt;&lt;P&gt;I will try tis ,once the issue is resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u&amp;nbsp; pls help me in resolving this issue.&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/thread/47658" title="https://communities.sas.com/thread/47658"&gt;https://communities.sas.com/thread/47658&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jul 2013 04:03:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-validate-datetime-column/m-p/126831#M294388</guid>
      <dc:creator>Helannivas</dc:creator>
      <dc:date>2013-07-06T04:03:34Z</dc:date>
    </item>
  </channel>
</rss>

