<?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: data import infile different results on different machines in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/data-import-infile-different-results-on-different-machines/m-p/329020#M9662</link>
    <description>&lt;P&gt;Hello RW9,&lt;BR /&gt;&lt;BR /&gt;Thanks for you hints. The columns are delimited with ; in the data.&lt;BR /&gt;There is more than one file that I import in the datalines bit but for now, we are testing with one.&lt;BR /&gt;Yes, EG is installed on Windows 7 machines. I used &lt;A href="https://www.diffchecker.com" target="_blank"&gt;https://www.diffchecker.com&lt;/A&gt; and could not find a difference in the proc options; output.&lt;/P&gt;&lt;P&gt;What are you other ideas on "any number of things" ? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Feb 2017 09:53:11 GMT</pubDate>
    <dc:creator>PhilipH</dc:creator>
    <dc:date>2017-02-01T09:53:11Z</dc:date>
    <item>
      <title>data import infile different results on different machines</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/data-import-infile-different-results-on-different-machines/m-p/328990#M9660</link>
      <description>&lt;P&gt;Hi SAS Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we run the below code and it imports 223 rows on 3 different machines using EG 7.1. and 6.x all using Windows 7.&lt;/P&gt;&lt;P&gt;The probem is we got one machine using EG 7.1 that imports only 220 rows. We have no idea why this is. The same code, the same input file. Any clues?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Importcont_Import;
infile datalines;
length fil2read $40;
input fil2read $;
infile dummy filevar=fil2read end=done DSD
        DLM=';';
do while(not done);
INPUT
	        A               : $CHAR40.
	        B               : $CHAR40.
	        C               : $CHAR20.
	        D               : $CHAR20.
	        E               : $CHAR150.
	        F               : $CHAR25.
	        G               : $CHAR25.
	        H               : $CHAR25.
	        I               : $CHAR25.
	        J              : $CHAR25.
	        K              : $CHAR25.
	        L              : $CHAR25. 
	        M              : $CHAR25.
	        N              : $CHAR25.
	        O              : $CHAR20.
	        P              : $CHAR25.
	        Q              : $CHAR20.
	        R              : $CHAR20.
	        S              : $CHAR25.
	        T              : $CHAR50.
	        U              : $CHAR20.
	        V              : $CHAR20.
	        W              : $CHAR20.
	        X              : $CHAR25.
	        Y              : $CHAR20.
	        Z              : $CHAR2000. ;
  output;
end;
datalines;
C:\temp\NW201634.csv
;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Many thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 07:42:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/data-import-infile-different-results-on-different-machines/m-p/328990#M9660</guid>
      <dc:creator>PhilipH</dc:creator>
      <dc:date>2017-02-01T07:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: data import infile different results on different machines</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/data-import-infile-different-results-on-different-machines/m-p/329007#M9661</link>
      <description>&lt;P&gt;What a peculier way to import a file, what with the datalines bit, also peculier that you are reading in a &lt;U&gt;Comma&lt;/U&gt; Seperated Variable file with a delimiter of a Semi-colon. &amp;nbsp;As for why it is not working, other than the two oddities above, could be any number of things. &amp;nbsp;Are all EG's installed on the same OS, is the file created by the same OS - Unix has different end of line characters as opposed to Windows for instance. &amp;nbsp;It could be SAS options, don't know which one would impact it. &amp;nbsp;Try running proc options on each a working machine and the non working machine.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 09:25:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/data-import-infile-different-results-on-different-machines/m-p/329007#M9661</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-02-01T09:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: data import infile different results on different machines</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/data-import-infile-different-results-on-different-machines/m-p/329020#M9662</link>
      <description>&lt;P&gt;Hello RW9,&lt;BR /&gt;&lt;BR /&gt;Thanks for you hints. The columns are delimited with ; in the data.&lt;BR /&gt;There is more than one file that I import in the datalines bit but for now, we are testing with one.&lt;BR /&gt;Yes, EG is installed on Windows 7 machines. I used &lt;A href="https://www.diffchecker.com" target="_blank"&gt;https://www.diffchecker.com&lt;/A&gt; and could not find a difference in the proc options; output.&lt;/P&gt;&lt;P&gt;What are you other ideas on "any number of things" ? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 09:53:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/data-import-infile-different-results-on-different-machines/m-p/329020#M9662</guid>
      <dc:creator>PhilipH</dc:creator>
      <dc:date>2017-02-01T09:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: data import infile different results on different machines</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/data-import-infile-different-results-on-different-machines/m-p/329021#M9663</link>
      <description>&lt;P&gt;Well, if the OS is the same, the files are the same, the import program is the same, and the options are all the same then it sounds like a ticket into SAS help to me as that shouldn't happen. &amp;nbsp;Only other thing I can think off, have you looked at the imported data on both machnes - i.e. identify which rows are not imported - could it be that there is no end of line, so its reading over the end of line? &amp;nbsp;Remember there are special characters to delimit lines amongst other things, so a text comparison might ignore those. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Identify what is missing, then focus in on those rows, use a hex editor (free portable ones like HN_Hex_Editor) to look at those rows closely, is there any special characters. &amp;nbsp;If you could snip down the file to the bit that doesn't work, you could post that here so we could look.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 09:58:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/data-import-infile-different-results-on-different-machines/m-p/329021#M9663</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-02-01T09:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: data import infile different results on different machines</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/data-import-infile-different-results-on-different-machines/m-p/329153#M9665</link>
      <description>&lt;P&gt;Do you get anything in the log about "went to new line"?&lt;/P&gt;
&lt;P&gt;Since you are not specifying an LRECL value it may be that the one machine has a default LRECL value smaller than the others.&lt;/P&gt;
&lt;P&gt;Run Proc Options and examine the LRECL value.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 16:44:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/data-import-infile-different-results-on-different-machines/m-p/329153#M9665</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-02-01T16:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: data import infile different results on different machines</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/data-import-infile-different-results-on-different-machines/m-p/329318#M9669</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;Thanks for the reply. I opened a ticket with SAS support.&lt;/P&gt;&lt;P&gt;Both machines have&amp;nbsp; LRECL=32767 .&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 08:27:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/data-import-infile-different-results-on-different-machines/m-p/329318#M9669</guid>
      <dc:creator>PhilipH</dc:creator>
      <dc:date>2017-02-02T08:27:04Z</dc:date>
    </item>
  </channel>
</rss>

