<?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: IMPORT CSV to SAS dataset in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/IMPORT-CSV-to-SAS-dataset/m-p/209089#M13854</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Keep in mind that PROC IMPORT is only a helper and has to make educated guesses. On itself, it does not import the file; instead, it creates a data step and runs that. This data step is also written to the log.&lt;/P&gt;&lt;P&gt;Take the data step from there, and use it in a separate code window to create a customised step that imports your data correctly.&lt;/P&gt;&lt;P&gt;The correct informat for your datetime values would be B8601DT16.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Aug 2015 06:39:03 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2015-08-28T06:39:03Z</dc:date>
    <item>
      <title>IMPORT CSV to SAS dataset</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/IMPORT-CSV-to-SAS-dataset/m-p/209087#M13852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a csv file and in one of columns I have the sas datetime values! As shown below the first row is blank. Im using the import procedure and sas is taking only first 10 charancter and covnerting to yymmdd10. format in the sas dataset&lt;/P&gt;&lt;P&gt;How can force sas to take entire value? I am using sas 9.4 version&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 200px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="200"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 200px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="200"&gt;2015-08-17T09:32&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;2015-06-17T09:39&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;2015-03-17T09:42&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;2015-04-17T09:45&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;2015-02-17T09:48&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;2015-04-17T09:51&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;2015-01-17T11:57&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;2015-04-29T09:00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me with this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 01:29:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/IMPORT-CSV-to-SAS-dataset/m-p/209087#M13852</guid>
      <dc:creator>SASSLICK001</dc:creator>
      <dc:date>2015-08-28T01:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: IMPORT CSV to SAS dataset</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/IMPORT-CSV-to-SAS-dataset/m-p/209088#M13853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PROC IMPORT has some limitations when it comes interpret date/datetime values.&lt;/P&gt;&lt;P&gt;And your datetime is in ISO format, which probably is not handled correctly w/ proc import.&lt;/P&gt;&lt;P&gt;SO either try to get a different format from the source, or import it using a data step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/15/676.html" title="http://support.sas.com/kb/15/676.html"&gt;15676 - Improved DATE,TIME, and DATETIME sampling in EFI, PROC IMPORT, andImport Wizard in SAS 9.2&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 05:14:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/IMPORT-CSV-to-SAS-dataset/m-p/209088#M13853</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2015-08-28T05:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: IMPORT CSV to SAS dataset</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/IMPORT-CSV-to-SAS-dataset/m-p/209089#M13854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Keep in mind that PROC IMPORT is only a helper and has to make educated guesses. On itself, it does not import the file; instead, it creates a data step and runs that. This data step is also written to the log.&lt;/P&gt;&lt;P&gt;Take the data step from there, and use it in a separate code window to create a customised step that imports your data correctly.&lt;/P&gt;&lt;P&gt;The correct informat for your datetime values would be B8601DT16.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 06:39:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/IMPORT-CSV-to-SAS-dataset/m-p/209089#M13854</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2015-08-28T06:39:03Z</dc:date>
    </item>
  </channel>
</rss>

