<?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: Proc Import DBMS=CSV, incorrectly assigning informats mmddyy10. instead of ddmmyy10. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-DBMS-CSV-incorrectly-assigning-informats-mmddyy10/m-p/175226#M33648</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also have some code in between imports to fix it if nothing else works:&lt;/P&gt;&lt;P&gt;data have1; &lt;BR /&gt;&amp;nbsp; attrib mytext format=$20. mydate format=mmddyy10.;&lt;BR /&gt;&amp;nbsp; mytext="Hello";&lt;BR /&gt;&amp;nbsp; mydate='12jan14'd;&lt;BR /&gt;&amp;nbsp; output;&lt;BR /&gt;&amp;nbsp; mytext="World";&lt;BR /&gt;&amp;nbsp; mydate='13Nov13'd;&lt;BR /&gt;&amp;nbsp; output;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;&amp;nbsp; create table TMP as &lt;BR /&gt;&amp;nbsp; select&amp;nbsp; distinct NAME&lt;BR /&gt;&amp;nbsp; from&amp;nbsp;&amp;nbsp;&amp;nbsp; DICTIONARY.COLUMNS&lt;BR /&gt;&amp;nbsp; where&amp;nbsp;&amp;nbsp; LIBNAME="WORK" &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and&amp;nbsp;&amp;nbsp; MEMNAME="HAVE1"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and&amp;nbsp;&amp;nbsp; FORMAT="MMDDYY10.";&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;&amp;nbsp; set TMP;&lt;BR /&gt;&amp;nbsp; call execute('data have1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set have1 (rename=('||strip(name)||'=tmp_var));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attrib '||strip(name)||' format=ddmmyy10.;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '||strip(name)||'=tmp_var;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;');&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Apr 2014 08:22:21 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2014-04-10T08:22:21Z</dc:date>
    <item>
      <title>Proc Import DBMS=CSV, incorrectly assigning informats mmddyy10. instead of ddmmyy10.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-DBMS-CSV-incorrectly-assigning-informats-mmddyy10/m-p/175224#M33646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a macro that loops through a dataset that contains the file paths of around 200 CSV's and imports them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The CSV files do not all have the same columns, however, one column that every CSV does have is a date column, in ddmm10 format. It will always be in the 2nd column, the 1st column will also be the same across all CSV's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where the first few rows in the CSV have dates &amp;gt;=12th of the month, SAS correctly assigns ddmmyy10. informat. But when this is not the case, it incorrectly assigns informat mmdd10., then when it comes to a date &amp;gt;=12th of the month, it fails to import that piece of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried adding a GUESSINGROWS=500 to force SAS to evaluate more rows before assigning an informat, but this does not resolve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe because of the varying columns across the CSV's, an 'infile' statement is out of the question. I have also seen some ideas to suggest copying the log where the proc import has generated datasteps into a program and remove any non SAS code, however, due to the number of CSV's involved this would be a long and tedious exercise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone suggest a way round this and force SAS to assign a ddmmyy10. informat to date fields in the proc import?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cxkev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 06:08:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Import-DBMS-CSV-incorrectly-assigning-informats-mmddyy10/m-p/175224#M33646</guid>
      <dc:creator>cxkev182</dc:creator>
      <dc:date>2014-04-10T06:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import DBMS=CSV, incorrectly assigning informats mmddyy10. instead of ddmmyy10.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-DBMS-CSV-incorrectly-assigning-informats-mmddyy10/m-p/175225#M33647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume you have put: mixed=yes; in your proc import?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 07:58:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Import-DBMS-CSV-incorrectly-assigning-informats-mmddyy10/m-p/175225#M33647</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-04-10T07:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import DBMS=CSV, incorrectly assigning informats mmddyy10. instead of ddmmyy10.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-DBMS-CSV-incorrectly-assigning-informats-mmddyy10/m-p/175226#M33648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also have some code in between imports to fix it if nothing else works:&lt;/P&gt;&lt;P&gt;data have1; &lt;BR /&gt;&amp;nbsp; attrib mytext format=$20. mydate format=mmddyy10.;&lt;BR /&gt;&amp;nbsp; mytext="Hello";&lt;BR /&gt;&amp;nbsp; mydate='12jan14'd;&lt;BR /&gt;&amp;nbsp; output;&lt;BR /&gt;&amp;nbsp; mytext="World";&lt;BR /&gt;&amp;nbsp; mydate='13Nov13'd;&lt;BR /&gt;&amp;nbsp; output;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;&amp;nbsp; create table TMP as &lt;BR /&gt;&amp;nbsp; select&amp;nbsp; distinct NAME&lt;BR /&gt;&amp;nbsp; from&amp;nbsp;&amp;nbsp;&amp;nbsp; DICTIONARY.COLUMNS&lt;BR /&gt;&amp;nbsp; where&amp;nbsp;&amp;nbsp; LIBNAME="WORK" &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and&amp;nbsp;&amp;nbsp; MEMNAME="HAVE1"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and&amp;nbsp;&amp;nbsp; FORMAT="MMDDYY10.";&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;&amp;nbsp; set TMP;&lt;BR /&gt;&amp;nbsp; call execute('data have1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set have1 (rename=('||strip(name)||'=tmp_var));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attrib '||strip(name)||' format=ddmmyy10.;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '||strip(name)||'=tmp_var;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;');&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 08:22:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Import-DBMS-CSV-incorrectly-assigning-informats-mmddyy10/m-p/175226#M33648</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-04-10T08:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import DBMS=CSV, incorrectly assigning informats mmddyy10. instead of ddmmyy10.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-DBMS-CSV-incorrectly-assigning-informats-mmddyy10/m-p/175227#M33649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wonder if changing the datestyle system option would have any effect?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;options&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;option&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=datestyle;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;15&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc options option=datestyle;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;16&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAS (r) Proprietary Software Release &lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;9.3&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; TS1M2&lt;BR /&gt;&lt;BR /&gt; DATESTYLE=MDY&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Identify sequence of month, day and year when ANYDATE informat data is ambiguous&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 11:17:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Import-DBMS-CSV-incorrectly-assigning-informats-mmddyy10/m-p/175227#M33649</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-04-10T11:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import DBMS=CSV, incorrectly assigning informats mmddyy10. instead of ddmmyy10.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-DBMS-CSV-incorrectly-assigning-informats-mmddyy10/m-p/175228#M33650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If there were rules indicating the column structure from the file names&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;or a consistent informat for each column with known column header&amp;nbsp; &lt;/P&gt;&lt;P&gt;then you would not be constrained by the "flexibility" offered by proc import.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you would have ways to pre-determine the informats you need and data steps could be provided with suitable informats and infile&amp;nbsp; options in a programmatic way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 11:58:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Import-DBMS-CSV-incorrectly-assigning-informats-mmddyy10/m-p/175228#M33650</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2014-04-10T11:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import DBMS=CSV, incorrectly assigning informats mmddyy10. instead of ddmmyy10.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-DBMS-CSV-incorrectly-assigning-informats-mmddyy10/m-p/175229#M33651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried mixed=yes, however, results in an error. I have researched this after our suggestion as it was the first time I'd heard of this option. Someone had wrote that it is only compatible with dbms=xls.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 17:15:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Import-DBMS-CSV-incorrectly-assigning-informats-mmddyy10/m-p/175229#M33651</guid>
      <dc:creator>cxkev182</dc:creator>
      <dc:date>2014-04-10T17:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import DBMS=CSV, incorrectly assigning informats mmddyy10. instead of ddmmyy10.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-DBMS-CSV-incorrectly-assigning-informats-mmddyy10/m-p/175230#M33652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;RW9 wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;You can also have some code in between imports to fix it if nothing else works:&lt;/P&gt;
&lt;P&gt;data have1; &lt;BR /&gt;&amp;nbsp; attrib mytext format=$20. mydate format=mmddyy10.;&lt;BR /&gt;&amp;nbsp; mytext="Hello";&lt;BR /&gt;&amp;nbsp; mydate='12jan14'd;&lt;BR /&gt;&amp;nbsp; output;&lt;BR /&gt;&amp;nbsp; mytext="World";&lt;BR /&gt;&amp;nbsp; mydate='13Nov13'd;&lt;BR /&gt;&amp;nbsp; output;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;BR /&gt;&amp;nbsp; create table TMP as &lt;BR /&gt;&amp;nbsp; select&amp;nbsp; distinct NAME&lt;BR /&gt;&amp;nbsp; from&amp;nbsp;&amp;nbsp;&amp;nbsp; DICTIONARY.COLUMNS&lt;BR /&gt;&amp;nbsp; where&amp;nbsp;&amp;nbsp; LIBNAME="WORK" &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and&amp;nbsp;&amp;nbsp; MEMNAME="HAVE1"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and&amp;nbsp;&amp;nbsp; FORMAT="MMDDYY10.";&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;data _null_;&lt;BR /&gt;&amp;nbsp; set TMP;&lt;BR /&gt;&amp;nbsp; call execute('data have1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set have1 (rename=('||strip(name)||'=tmp_var));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attrib '||strip(name)||' format=ddmmyy10.;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '||strip(name)||'=tmp_var;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;');&lt;BR /&gt;run;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;The results of the proc import, where the date informat incorrectly assigns a mmddyy means that anything &amp;gt;=12th of month, is imported into SAS with a . value, so there is no value there to change&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 17:24:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Import-DBMS-CSV-incorrectly-assigning-informats-mmddyy10/m-p/175230#M33652</guid>
      <dc:creator>cxkev182</dc:creator>
      <dc:date>2014-04-10T17:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import DBMS=CSV, incorrectly assigning informats mmddyy10. instead of ddmmyy10.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-DBMS-CSV-incorrectly-assigning-informats-mmddyy10/m-p/175231#M33653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;data_null_; wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I wonder if changing the datestyle system option would have any effect?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;
&lt;/PRE&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;options&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;option&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=datestyle;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;15&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc options option=datestyle;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;16&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAS (r) Proprietary Software Release &lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;9.3&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; TS1M2&lt;BR /&gt;&lt;BR /&gt; DATESTYLE=MDY&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Identify sequence of month, day and year when ANYDATE informat data is ambiguous&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the suggestion, unfortunately, this has not solved the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 17:32:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Import-DBMS-CSV-incorrectly-assigning-informats-mmddyy10/m-p/175231#M33653</guid>
      <dc:creator>cxkev182</dc:creator>
      <dc:date>2014-04-10T17:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import DBMS=CSV, incorrectly assigning informats mmddyy10. instead of ddmmyy10.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-DBMS-CSV-incorrectly-assigning-informats-mmddyy10/m-p/175232#M33654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you change the datestyle option or just run the code data _null_ provided?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc options option=datestyle;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options datestyle=dmy;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc options option=datestyle;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;*Change back;&lt;/P&gt;&lt;P&gt;*options datestyle=mdy;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 17:37:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Import-DBMS-CSV-incorrectly-assigning-informats-mmddyy10/m-p/175232#M33654</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-04-10T17:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import DBMS=CSV, incorrectly assigning informats mmddyy10. instead of ddmmyy10.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-DBMS-CSV-incorrectly-assigning-informats-mmddyy10/m-p/175233#M33655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the many csv files are all the same format then it is not a lot of code. You only change the input file reference and the outpu data set name once it is working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You didn't say how many records your files have, you might try a much larger value than 500 for guessingrows, especially if your data is sorted by the date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Personally I only use proc import on CSV files to build a program to modify especially if there are more than one input file of the same layout to process. Generally I set text fields such as names, addresses, account identifiers or other to about 25% longer than found in the first file because such things tend to vary from file to file and if I guess right I have all of the data with the same lengths which can be important if the files ever get combined (since they are the same layout the likelihood is pretty large).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 17:41:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Import-DBMS-CSV-incorrectly-assigning-informats-mmddyy10/m-p/175233#M33655</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-04-10T17:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import DBMS=CSV, incorrectly assigning informats mmddyy10. instead of ddmmyy10.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-DBMS-CSV-incorrectly-assigning-informats-mmddyy10/m-p/175234#M33656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;Reeza wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Did you change the datestyle option or just run the code data _null_ provided?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;proc options option=datestyle;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;options datestyle=dmy;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;proc options option=datestyle;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;
&lt;P&gt;*Change back;&lt;/P&gt;
&lt;P&gt;*options datestyle=mdy;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added a &lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;options datestyle=dmy; to the start of my program.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 17:48:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Import-DBMS-CSV-incorrectly-assigning-informats-mmddyy10/m-p/175234#M33656</guid>
      <dc:creator>cxkev182</dc:creator>
      <dc:date>2014-04-10T17:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import DBMS=CSV, incorrectly assigning informats mmddyy10. instead of ddmmyy10.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-DBMS-CSV-incorrectly-assigning-informats-mmddyy10/m-p/175235#M33657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I would create files with the first two columns using&amp;nbsp; ‘infile’ statement, then combine these files&lt;BR /&gt;with files created by proc import:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; merge cvs1_part1&amp;nbsp; cvs1_part2(drop=column_1 column_2);&lt;/P&gt;&lt;P&gt;&amp;nbsp; Run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 17:58:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Import-DBMS-CSV-incorrectly-assigning-informats-mmddyy10/m-p/175235#M33657</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2014-04-10T17:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import DBMS=CSV, incorrectly assigning informats mmddyy10. instead of ddmmyy10.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-DBMS-CSV-incorrectly-assigning-informats-mmddyy10/m-p/175236#M33658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;Linlin wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I would create files with the first two columns using&amp;nbsp; ‘infile’ statement, then combine these files&lt;BR /&gt;with files created by proc import:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Data want;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; merge cvs1_part1&amp;nbsp; cvs1_part2(drop=column_1 column_2);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Run;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much, that worked! Simple when you know how &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to everyone for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 18:38:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Import-DBMS-CSV-incorrectly-assigning-informats-mmddyy10/m-p/175236#M33658</guid>
      <dc:creator>cxkev182</dc:creator>
      <dc:date>2014-04-10T18:38:47Z</dc:date>
    </item>
  </channel>
</rss>

