<?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: Reading raw file data with different date type in different records in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Reading-raw-file-data-with-different-date-type-in-different/m-p/238653#M14866</link>
    <description>&lt;P&gt;Personally I wouldn't risk trying to work with that data. &amp;nbsp;Go back to your data import agreement - you have on of those right? - and check what it states in there. &amp;nbsp;If you dont have one of those, make one and get the vendor to agree to it. &amp;nbsp;They should be providing a robust, structured dataset, which they currently are not. &amp;nbsp;For instance, what does&amp;nbsp;&lt;SPAN&gt;12112014, mean? &amp;nbsp;Is it december or november. &amp;nbsp;As with everything programmatic - specify, specify, specify, then code. &amp;nbsp;Programming is in fact 99% irrelevant, specification and documentation is the key.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Dec 2015 09:59:44 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2015-12-10T09:59:44Z</dc:date>
    <item>
      <title>Reading raw file data with different date type in different records</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Reading-raw-file-data-with-different-date-type-in-different/m-p/238537#M14862</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've a raw file with different date values in different records.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;eX:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Datalines;&lt;/P&gt;
&lt;P&gt;08DEC2015&lt;/P&gt;
&lt;P&gt;12112014&lt;/P&gt;
&lt;P&gt;201113&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to read different date types from raw file.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2015 17:30:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Reading-raw-file-data-with-different-date-type-in-different/m-p/238537#M14862</guid>
      <dc:creator>sunilreddy</dc:creator>
      <dc:date>2015-12-09T17:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Reading raw file data with different date type in different records</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Reading-raw-file-data-with-different-date-type-in-different/m-p/238540#M14863</link>
      <description>You can try ANYDTDTE or you can bring it in as character and then try and parse it out using some logic if/then statements.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;data want;&lt;BR /&gt;format date date9.;&lt;BR /&gt;input date anydtdte.;&lt;BR /&gt;cards;&lt;BR /&gt;08DEC2015&lt;BR /&gt;12112014&lt;BR /&gt;201113&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc print data=want;&lt;BR /&gt;run;&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Dec 2015 17:43:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Reading-raw-file-data-with-different-date-type-in-different/m-p/238540#M14863</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-09T17:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Reading raw file data with different date type in different records</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Reading-raw-file-data-with-different-date-type-in-different/m-p/238555#M14864</link>
      <description>&lt;P&gt;Don't be surprised if you get values you don't expect.&lt;/P&gt;
&lt;P&gt;Your example of 12112014 will depend on your national language setting for whether that is supposed to be MM/DD/YY or DD/MM/YY.&lt;/P&gt;
&lt;P&gt;And 201113 is likely to have problems if it is supposed to be YYYYMMDD as it could be interpreted as 2011 Jan 3 or 20 Nov 2013&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2015 18:34:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Reading-raw-file-data-with-different-date-type-in-different/m-p/238555#M14864</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-12-09T18:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Reading raw file data with different date type in different records</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Reading-raw-file-data-with-different-date-type-in-different/m-p/238558#M14865</link>
      <description>Here's an example of a thorough process...it's a bit of work. I've seen some cleaner regex solutions, but I can't seem to find any right now.</description>
      <pubDate>Wed, 09 Dec 2015 18:40:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Reading-raw-file-data-with-different-date-type-in-different/m-p/238558#M14865</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-09T18:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Reading raw file data with different date type in different records</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Reading-raw-file-data-with-different-date-type-in-different/m-p/238653#M14866</link>
      <description>&lt;P&gt;Personally I wouldn't risk trying to work with that data. &amp;nbsp;Go back to your data import agreement - you have on of those right? - and check what it states in there. &amp;nbsp;If you dont have one of those, make one and get the vendor to agree to it. &amp;nbsp;They should be providing a robust, structured dataset, which they currently are not. &amp;nbsp;For instance, what does&amp;nbsp;&lt;SPAN&gt;12112014, mean? &amp;nbsp;Is it december or november. &amp;nbsp;As with everything programmatic - specify, specify, specify, then code. &amp;nbsp;Programming is in fact 99% irrelevant, specification and documentation is the key.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2015 09:59:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Reading-raw-file-data-with-different-date-type-in-different/m-p/238653#M14866</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-12-10T09:59:44Z</dc:date>
    </item>
  </channel>
</rss>

