<?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: File Import vs Data Step Import in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/File-Import-vs-Data-Step-Import/m-p/426455#M105068</link>
    <description>&lt;P&gt;EG converts the input file to a standardized format, copies the result to a file in the WORK location, and then runs a data step to read the converted data. Because of the conversion, this data step code won't fit your original data.&lt;/P&gt;
&lt;P&gt;Two possible remedies:&lt;/P&gt;
&lt;P&gt;- use proc import on the server, and then copy the data step (created and run by proc import) from the log&lt;/P&gt;
&lt;P&gt;- write the data step yourself according to the documentation of the csv file; this option is preferred&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jan 2018 14:22:45 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-01-10T14:22:45Z</dc:date>
    <item>
      <title>File Import vs Data Step Import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/File-Import-vs-Data-Step-Import/m-p/426452#M105067</link>
      <description>&lt;P&gt;When I imported the .csv file from my desktop via File-&amp;gt; Import Data from SAS EG I can see the data set created as expected. However when I place the same file in server and I used a Data step to import the file &amp;nbsp;I end up with missing records for all the variables. SAS code which I used here is a copy of the log from the File-&amp;gt; Import Data. Only thing which I changed in the coding part is the file location in Infile statement. There is no error in the log file as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Appreciate if someone help me to get rid of this issue.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 14:16:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/File-Import-vs-Data-Step-Import/m-p/426452#M105067</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-01-10T14:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: File Import vs Data Step Import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/File-Import-vs-Data-Step-Import/m-p/426455#M105068</link>
      <description>&lt;P&gt;EG converts the input file to a standardized format, copies the result to a file in the WORK location, and then runs a data step to read the converted data. Because of the conversion, this data step code won't fit your original data.&lt;/P&gt;
&lt;P&gt;Two possible remedies:&lt;/P&gt;
&lt;P&gt;- use proc import on the server, and then copy the data step (created and run by proc import) from the log&lt;/P&gt;
&lt;P&gt;- write the data step yourself according to the documentation of the csv file; this option is preferred&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 14:22:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/File-Import-vs-Data-Step-Import/m-p/426455#M105068</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-01-10T14:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: File Import vs Data Step Import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/File-Import-vs-Data-Step-Import/m-p/426473#M105073</link>
      <description>&lt;P&gt;Enterprise Guide converts the file to some other format and uses a different delimiter "7F"x between the data values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check your code, the DLM= option on the INFILE statement propably looks like&amp;nbsp;DLM='7F'x.&amp;nbsp;Change it to the correct delimiter, something like DLM=",".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that you can also import CSV files that are located on the server&lt;/P&gt;
&lt;P&gt;One page 4 of the import wizard you can select "Generalize import step to run outside of Enterprise Guide". Using thsi option will not create an intermediate file and just runs.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 14:46:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/File-Import-vs-Data-Step-Import/m-p/426473#M105073</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2018-01-10T14:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: File Import vs Data Step Import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/File-Import-vs-Data-Step-Import/m-p/426785#M105191</link>
      <description>&lt;P&gt;Still I facing the same issue after updating the DLM option to&amp;nbsp;&amp;nbsp;DLM=",". Could you please help me understand what is still causing an issue?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 06:01:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/File-Import-vs-Data-Step-Import/m-p/426785#M105191</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-01-11T06:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: File Import vs Data Step Import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/File-Import-vs-Data-Step-Import/m-p/426790#M105194</link>
      <description>&lt;P&gt;Don't expect that a single change will fix your issue on the first try. Use the tool that sits between your ears.&lt;/P&gt;
&lt;P&gt;Read the log.&lt;/P&gt;
&lt;P&gt;See if the delimiter fits at all (your text file might have a different one).&lt;/P&gt;
&lt;P&gt;See if all column specifications match the data in your infile.&lt;/P&gt;
&lt;P&gt;If you still end up puzzled, post code&amp;amp;log, and attach a sample of your file.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 06:42:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/File-Import-vs-Data-Step-Import/m-p/426790#M105194</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-01-11T06:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: File Import vs Data Step Import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/File-Import-vs-Data-Step-Import/m-p/530856#M145192</link>
      <description>&lt;P&gt;You probably must change the encoding value. Check the encoding of your original file and change the EG generated code to the one that fits your data e.g utf8..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 07:57:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/File-Import-vs-Data-Step-Import/m-p/530856#M145192</guid>
      <dc:creator>JesperStrøyer</dc:creator>
      <dc:date>2019-01-29T07:57:35Z</dc:date>
    </item>
  </channel>
</rss>

