<?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 Import Data - Delimiter in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-Data-Delimiter/m-p/621258#M35464</link>
    <description>&lt;P&gt;Newer EG user here and I am trying to import a .DAT file where the&amp;nbsp;Field delimiter is ~##~ and Record delimiter is&amp;nbsp;~@^*^@~&lt;/P&gt;&lt;P&gt;In EG, the Delimited Fields "Other" option appears to only allow one character.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know if this delimiter type is possible?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jan 2020 18:11:38 GMT</pubDate>
    <dc:creator>RandyW</dc:creator>
    <dc:date>2020-01-30T18:11:38Z</dc:date>
    <item>
      <title>Import Data - Delimiter</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-Data-Delimiter/m-p/621258#M35464</link>
      <description>&lt;P&gt;Newer EG user here and I am trying to import a .DAT file where the&amp;nbsp;Field delimiter is ~##~ and Record delimiter is&amp;nbsp;~@^*^@~&lt;/P&gt;&lt;P&gt;In EG, the Delimited Fields "Other" option appears to only allow one character.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know if this delimiter type is possible?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 18:11:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-Data-Delimiter/m-p/621258#M35464</guid>
      <dc:creator>RandyW</dc:creator>
      <dc:date>2020-01-30T18:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Import Data - Delimiter</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-Data-Delimiter/m-p/621265#M35465</link>
      <description>&lt;P&gt;Are you really trying to read a WORD file?&amp;nbsp; If not can you post some of the data as text instead of as WORD attachment.&amp;nbsp; If you just pasted a photograph of your data into the WORD file then post the photograph directly into your posting instead.&lt;/P&gt;
&lt;P&gt;You can use a simple data step to see what is in the file. Something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  infile 'myfile.dat' obs=3;
  input;
  list;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or perhaps you want to treat it as a binary file since you apparently have "records" instead of "lines".&amp;nbsp; In that case you might just read the first few hundred bytes of the file. Say 300 bytes in blocks of 100 each.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  infile 'myfile.dat' recfm=f lrecl=100 obs=3;
  input;
  list;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 18:32:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-Data-Delimiter/m-p/621265#M35465</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-01-30T18:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Import Data - Delimiter</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-Data-Delimiter/m-p/621266#M35466</link>
      <description>&lt;P&gt;Now THAT's funky data!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I took at quick look at EG, and I don't see a way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you experienced enough with the SAS tools to write some SAS code and run it in a program node in EG? Doing something like this is trivial with the underlying SAS programming language.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another option I can think of is to use something like Notepad to convert all of your multi-character delimiters to a single character. ~ and | are popular, just make sure first that whatever it is doesn't appear in the dataset already.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 18:24:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-Data-Delimiter/m-p/621266#M35466</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2020-01-30T18:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Import Data - Delimiter</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-Data-Delimiter/m-p/621274#M35467</link>
      <description>&lt;P&gt;great idea, thank you&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 18:55:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-Data-Delimiter/m-p/621274#M35467</guid>
      <dc:creator>RandyW</dc:creator>
      <dc:date>2020-01-30T18:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Import Data - Delimiter</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-Data-Delimiter/m-p/621496#M35479</link>
      <description>&lt;P&gt;Here's a suggestion that may get you something that works for that file:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Post some example &lt;STRONG&gt;text&lt;/STRONG&gt; in a code box opened on the forum with the {I}. The picture you posted does not include an actual example of your end of record appearance. The example doesn't need to contain any sensitive values and would be a good idea to contain at least 3 records so we can see two or more "end of record"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code would be needed but he field delimiter can be addressed with the DLMSTR option on an infile statement:&lt;/P&gt;
&lt;PRE&gt;data example;
   infile datalines dlmstr="~##~";
   input a $ b c;
datalines;
abc~##~1.23~##~999
;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 17:16:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-Data-Delimiter/m-p/621496#M35479</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-01-31T17:16:35Z</dc:date>
    </item>
  </channel>
</rss>

