<?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: Importing tab delimited files in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Importing-tab-delimited-files/m-p/156008#M2738</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Run this program on the original file.&amp;nbsp; Find the place with the '0d'x and show the output.&amp;nbsp; I want to see what follows the '0d'x in the original unaltered file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;filename&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; FT55F001 &lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'path-to-original-file.txt'&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;lrecl&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;100&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;recfm&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=F;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;_null_&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;infile&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; FT55F001;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;input&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;list&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; _n_ gt &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;20&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;then&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;stop&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/DIV&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt; &lt;/DIV&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #ff0000;"&gt;This&lt;/SPAN&gt; is what I see now but I think that gets "created" when you modify the file so you can post it.&lt;/DIV&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt; &lt;/DIV&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;6&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; CHAR&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;ted_at.&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;.2222.F&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;irst Degree &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;Burns.&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;..F&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;irst Degree Burns."First degree burns are those in which only the&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ZONE&amp;nbsp; 7665670033330467772466766247767000467772466766247767024677726667662677672676276676266276666266672766&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NUMR&amp;nbsp; 454F14DA222296923404572550252E39996923404572550252E3926923404572550252E30125048F3509E0789380FEC90485&lt;BR /&gt;7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outer layer of skin is burned, but not all the way through. The skin is usually red and sometimes c&lt;BR /&gt;&lt;BR /&gt;RULE:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;8&amp;nbsp;&amp;nbsp; CHAR&amp;nbsp; an swell or be painful. It is the least serious type of burn to &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;have.&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="background-color: #ffffff;"&gt;...&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;"..t.f.10016700.First degre&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ZONE&amp;nbsp; 6627766626726627666676224726727662666772767667727776266267762762667622&lt;SPAN style="color: #ff0000;"&gt;000&lt;/SPAN&gt;200706033333333046777266676&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NUMR&amp;nbsp; 1E0375CC0F20250019E65CE09409304850C513403529F53049050F60252E04F08165E0&lt;SPAN style="color: #ff0000;"&gt;DDA&lt;/SPAN&gt;299496910016700969234045725&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Mar 2014 18:27:37 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2014-03-25T18:27:37Z</dc:date>
    <item>
      <title>Importing tab delimited files</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Importing-tab-delimited-files/m-p/156003#M2733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SAS Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to import a tab delimited file (sample file attached) where the first line is the variable names and lines 2 and 3 contain data from one id (should align as a single row in the SAS file). I used the following Import syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc import&amp;nbsp; out=temp datafile='C:\Users\template.txt' dbms=dlm replace; &lt;/P&gt;&lt;P&gt;&amp;nbsp; delimiter='09'x;&lt;/P&gt;&lt;P&gt;&amp;nbsp; guessingrows=32767;&lt;/P&gt;&lt;P&gt;&amp;nbsp; getnames=yes;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The imported file is not in proper format and the variable names don't align with the variable values. I suspect this has to do with special characters in the character variables but for the life of me, I cant figure out how to fix it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be much appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pronabesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 16:50:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Importing-tab-delimited-files/m-p/156003#M2733</guid>
      <dc:creator>pronabesh</dc:creator>
      <dc:date>2014-03-25T16:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Importing tab delimited files</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Importing-tab-delimited-files/m-p/156004#M2734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS cannot guess correctly that two rows of data are a single record, it will align first column, second etc. according to the delimiter provided. I don't see any special characters, which are you concerned with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may need to investigate the details of the input statement regarding reading multiple lines and such.&lt;/P&gt;&lt;P&gt;You didn't provide much in the way of data to do any testing and you will want to specify what the expected result is for example data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 17:07:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Importing-tab-delimited-files/m-p/156004#M2734</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-03-25T17:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Importing tab delimited files</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Importing-tab-delimited-files/m-p/156005#M2735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you create Template.txt with an editor?&amp;nbsp; I see '0d0d0a'x follow by " double quote on the next line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm thinking that '0d0a' was created when you saved it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you show a bit of the original unaltered file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 17:18:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Importing-tab-delimited-files/m-p/156005#M2735</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-03-25T17:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Importing tab delimited files</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Importing-tab-delimited-files/m-p/156006#M2736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks ballardw,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SQL data miners provided me this data as tab delimited. I am assuming that every variable should be delimited by tab. However if I run my syntax on the sample dataset (agreed this is only a small sample) the delimiting does not work. I used '09'x as the delimiter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 17:18:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Importing-tab-delimited-files/m-p/156006#M2736</guid>
      <dc:creator>pronabesh</dc:creator>
      <dc:date>2014-03-25T17:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Importing tab delimited files</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Importing-tab-delimited-files/m-p/156007#M2737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Data_Null,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response. Here is a bigger cut of the data (see attached). I can send you the unadulterated file too but will need to strip some columns.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 17:38:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Importing-tab-delimited-files/m-p/156007#M2737</guid>
      <dc:creator>pronabesh</dc:creator>
      <dc:date>2014-03-25T17:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Importing tab delimited files</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Importing-tab-delimited-files/m-p/156008#M2738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Run this program on the original file.&amp;nbsp; Find the place with the '0d'x and show the output.&amp;nbsp; I want to see what follows the '0d'x in the original unaltered file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;filename&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; FT55F001 &lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'path-to-original-file.txt'&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;lrecl&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;100&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;recfm&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=F;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;_null_&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;infile&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; FT55F001;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;input&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;list&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; _n_ gt &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;20&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;then&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;stop&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/DIV&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt; &lt;/DIV&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #ff0000;"&gt;This&lt;/SPAN&gt; is what I see now but I think that gets "created" when you modify the file so you can post it.&lt;/DIV&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt; &lt;/DIV&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;6&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; CHAR&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;ted_at.&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;.2222.F&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;irst Degree &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;Burns.&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;..F&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;irst Degree Burns."First degree burns are those in which only the&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ZONE&amp;nbsp; 7665670033330467772466766247767000467772466766247767024677726667662677672676276676266276666266672766&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NUMR&amp;nbsp; 454F14DA222296923404572550252E39996923404572550252E3926923404572550252E30125048F3509E0789380FEC90485&lt;BR /&gt;7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outer layer of skin is burned, but not all the way through. The skin is usually red and sometimes c&lt;BR /&gt;&lt;BR /&gt;RULE:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;8&amp;nbsp;&amp;nbsp; CHAR&amp;nbsp; an swell or be painful. It is the least serious type of burn to &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;have.&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="background-color: #ffffff;"&gt;...&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;"..t.f.10016700.First degre&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ZONE&amp;nbsp; 6627766626726627666676224726727662666772767667727776266267762762667622&lt;SPAN style="color: #ff0000;"&gt;000&lt;/SPAN&gt;200706033333333046777266676&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NUMR&amp;nbsp; 1E0375CC0F20250019E65CE09409304850C513403529F53049050F60252E04F08165E0&lt;SPAN style="color: #ff0000;"&gt;DDA&lt;/SPAN&gt;299496910016700969234045725&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 18:27:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Importing-tab-delimited-files/m-p/156008#M2738</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-03-25T18:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Importing tab delimited files</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Importing-tab-delimited-files/m-p/156009#M2739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The issue was carriage return and linefeed characters within quoted strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*----------------------------------*/&lt;/P&gt;&lt;P&gt;/* Import txt files to SAS files&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;/P&gt;&lt;P&gt;/*----------------------------------*/&lt;/P&gt;&lt;P&gt;/*------------------------------------------------------------------------*/&lt;/P&gt;&lt;P&gt;/* Remove carriage return and linefeed characters within quoted strings&amp;nbsp;&amp;nbsp; */&lt;/P&gt;&lt;P&gt;/*------------------------------------------------------------------------*/&lt;/P&gt;&lt;P&gt;data _null_; &lt;/P&gt;&lt;P&gt;infile 'C:\Users\Pronabesh\Desktop\SQLtoSAS\condition.txt' recfm=n sharebuffers; &lt;/P&gt;&lt;P&gt;file 'C:\Users\Pronabesh\Desktop\SQLtoSAS\condition.txt' recfm=n; &lt;/P&gt;&lt;P&gt;input a $char1.; &lt;/P&gt;&lt;P&gt;retain open 0;&amp;nbsp; &lt;/P&gt;&lt;P&gt;/* This statement toggles the open flag. */ &lt;/P&gt;&lt;P&gt;if a='"' then open=not open;&amp;nbsp; &lt;/P&gt;&lt;P&gt;if a='0A'x and open then put ' '; &lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;/*----------------------------------*/&lt;/P&gt;&lt;P&gt;/* Import txt files to SAS files&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;/P&gt;&lt;P&gt;/*----------------------------------*/&lt;/P&gt;&lt;P&gt;proc import datafile='C:\Users\Pronabesh\Desktop\SQLtoSAS\condition.txt'&lt;/P&gt;&lt;P&gt;&amp;nbsp; out=temp2&lt;/P&gt;&lt;P&gt;&amp;nbsp; dbms=dlm replace; &lt;/P&gt;&lt;P&gt;&amp;nbsp; delimiter='09'x;&lt;/P&gt;&lt;P&gt;&amp;nbsp; guessingrows=32767; * Specifies the number of rows of the file to scan to determine the appropriate data type and length for the columns;&lt;/P&gt;&lt;P&gt;&amp;nbsp; getnames=yes;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 21:23:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Importing-tab-delimited-files/m-p/156009#M2739</guid>
      <dc:creator>pronabesh</dc:creator>
      <dc:date>2014-03-25T21:23:35Z</dc:date>
    </item>
  </channel>
</rss>

