<?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 problem csv sas9.1 and sas9.3 in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-import-problem-csv-sas9-1-and-sas9-3/m-p/210823#M52115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I basically use Proc Import to generate a base datastep to read CSV files. Look in the log to see the generated code to see the details of how the file was read in each version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then save the starting code, modify it as I need specifying informats, formats, lengths, labels and such. Then I'm not getting different behaviors, especially for lengths of character variables, for different versions of the input data set OR across SAS versions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 May 2015 15:33:17 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2015-05-07T15:33:17Z</dc:date>
    <item>
      <title>proc import problem csv sas9.1 and sas9.3</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-import-problem-csv-sas9-1-and-sas9-3/m-p/210821#M52113</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;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;I try to import a CSV file with the following code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;proc import data file = "&amp;amp; data directory. \ c_can.csv"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; out = cardiacancer&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbms = csv&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; replace;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; getnames = yes;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataRow = 2;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; guessingrows = 5000;&lt;BR /&gt;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;When I do it in sas9.1 I get the following&lt;BR /&gt;NOTE: The data set WORK.CARDIACANCER has 5141 observations and 82 variables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;When I run it in sas9.3 I get the following&lt;BR /&gt;NOTE: The data set WORK.CARDIACANCER has 5141 observations and 65 variables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;why this difference in variables? &lt;BR /&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;I need to run the code in sas9.3, since the code is part of a program that uses the functionality only in sas9.3&lt;BR /&gt;&lt;BR /&gt;In addition, I find that the sas9.3 not load the entire variable length&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 09:41:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-import-problem-csv-sas9-1-and-sas9-3/m-p/210821#M52113</guid>
      <dc:creator>piaans</dc:creator>
      <dc:date>2015-05-07T09:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: proc import problem csv sas9.1 and sas9.3</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-import-problem-csv-sas9-1-and-sas9-3/m-p/210822#M52114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You've got some sort of length setting that is different between the two versions.&amp;nbsp; Each version has its own configuration files and I bet they are different.&amp;nbsp; The easiest way to find the difference might be to run PROC OPTIONS; in each.&amp;nbsp; The LRECL default in PROC IMPORT; may be different.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 15:29:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-import-problem-csv-sas9-1-and-sas9-3/m-p/210822#M52114</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2015-05-07T15:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: proc import problem csv sas9.1 and sas9.3</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-import-problem-csv-sas9-1-and-sas9-3/m-p/210823#M52115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I basically use Proc Import to generate a base datastep to read CSV files. Look in the log to see the generated code to see the details of how the file was read in each version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then save the starting code, modify it as I need specifying informats, formats, lengths, labels and such. Then I'm not getting different behaviors, especially for lengths of character variables, for different versions of the input data set OR across SAS versions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 15:33:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-import-problem-csv-sas9-1-and-sas9-3/m-p/210823#M52115</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-05-07T15:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: proc import problem csv sas9.1 and sas9.3</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-import-problem-csv-sas9-1-and-sas9-3/m-p/210824#M52116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;It is&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;also the solution&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;I've used&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;so far.&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;but there&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;are&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;occasionally&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;new&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;variable&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;CSV&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;files&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;and it's&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;a little&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;inconvenient&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to have to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;fix the code&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;instead of&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;being able to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;use a&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;import&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 06:05:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-import-problem-csv-sas9-1-and-sas9-3/m-p/210824#M52116</guid>
      <dc:creator>piaans</dc:creator>
      <dc:date>2015-05-08T06:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: proc import problem csv sas9.1 and sas9.3</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-import-problem-csv-sas9-1-and-sas9-3/m-p/210825#M52117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The lrecl is 32767 in both sas9.1 and sas9.3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 06:08:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-import-problem-csv-sas9-1-and-sas9-3/m-p/210825#M52117</guid>
      <dc:creator>piaans</dc:creator>
      <dc:date>2015-05-08T06:08:21Z</dc:date>
    </item>
  </channel>
</rss>

