<?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: SAS 9.3 vs. SAS 9.4 in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-Import-SAS-9-3-vs-SAS-9-4/m-p/281081#M59065</link>
    <description>Hi, &lt;BR /&gt;I have spoke with support and seems to be an error with SAS 9.4. TS1M3, the same importation in M2 don't give any error. They say that may be solved on next version.</description>
    <pubDate>Wed, 29 Jun 2016 13:07:50 GMT</pubDate>
    <dc:creator>arodriguez</dc:creator>
    <dc:date>2016-06-29T13:07:50Z</dc:date>
    <item>
      <title>proc Import: SAS 9.3 vs. SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-Import-SAS-9-3-vs-SAS-9-4/m-p/280808#M59039</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm testing some programs that we have to check if we can upgrade sas without many troubles. In a check that I was doing I notice that SAS 9.4 import different that SAS 9.3 with proc import. I have attatched the file (notice that it's in txt because communitie don't allow csv).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code that I use to import in that case is&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile="XXXXXXX\example.csv"         
	out=example
        dbms=csv
        replace;
     getnames=yes;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In fact, with SAS 9.4 I get an error because sas try to put a date format into the data _NULL_.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyone know how to solve it without change importation to data _NULL_?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 14:43:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-Import-SAS-9-3-vs-SAS-9-4/m-p/280808#M59039</guid>
      <dc:creator>arodriguez</dc:creator>
      <dc:date>2016-06-28T14:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: proc Import: SAS 9.3 vs. SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-Import-SAS-9-3-vs-SAS-9-4/m-p/280819#M59040</link>
      <description>&lt;P&gt;You don't have control with proc import. Unless you write your own data step you can't control the variable type from a text file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try GuessingRows=1 but that might mess up other things.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 15:04:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-Import-SAS-9-3-vs-SAS-9-4/m-p/280819#M59040</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-28T15:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: proc Import: SAS 9.3 vs. SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-Import-SAS-9-3-vs-SAS-9-4/m-p/280833#M59041</link>
      <description>&lt;P&gt;Raise the issue with SAS support. &amp;nbsp;I suspect what is happening is that SAS 9.3 did not consider the value in the last row as a valid DATE format so it just reads the field as character. &amp;nbsp;But 9.4 decides that you intended the field to be a date.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The real solution is to only used PROC IMPORT for quick and dirty looks at source files. Once you figure out what format your input files use then write you own data step to read it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you really have no idea what is in your file then just read everything as character and take a look yourself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data sample ;
  infile 'myfile' dsd truncover firstobs=2;
  length var1-var20 $200 ;
  input var1-var20;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Jun 2016 16:04:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-Import-SAS-9-3-vs-SAS-9-4/m-p/280833#M59041</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2016-06-28T16:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: proc Import: SAS 9.3 vs. SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-Import-SAS-9-3-vs-SAS-9-4/m-p/280993#M59062</link>
      <description>Ok, thanks for the information. I will create a issue in SAS support and try to upgrade to data step the imports that give problems in SAS 9.4 and not in 9.3</description>
      <pubDate>Wed, 29 Jun 2016 07:38:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-Import-SAS-9-3-vs-SAS-9-4/m-p/280993#M59062</guid>
      <dc:creator>arodriguez</dc:creator>
      <dc:date>2016-06-29T07:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: proc Import: SAS 9.3 vs. SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-Import-SAS-9-3-vs-SAS-9-4/m-p/281081#M59065</link>
      <description>Hi, &lt;BR /&gt;I have spoke with support and seems to be an error with SAS 9.4. TS1M3, the same importation in M2 don't give any error. They say that may be solved on next version.</description>
      <pubDate>Wed, 29 Jun 2016 13:07:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-Import-SAS-9-3-vs-SAS-9-4/m-p/281081#M59065</guid>
      <dc:creator>arodriguez</dc:creator>
      <dc:date>2016-06-29T13:07:50Z</dc:date>
    </item>
  </channel>
</rss>

