<?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: SAS cannot process TAB delimeter in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/SAS-cannot-process-TAB-delimeter/m-p/674063#M79293</link>
    <description>&lt;P&gt;1) Have you run the proc export? You can ignore the note about the parameter catalog, as sas will overcome it. There is no log information expected of running the proc import.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) Are you sure that the delimiter is '09'x and not '_' .&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Why have you coded lines:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;informat Name_____Gender___Age $20. ;
 format Name_____Gender___Age $20. ;
     input
              Name_____Gender___Age  $
         ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;instead, just:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;    input   Name $  Gender $  Age  $ ;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Aug 2020 07:32:37 GMT</pubDate>
    <dc:creator>Shmuel</dc:creator>
    <dc:date>2020-08-03T07:32:37Z</dc:date>
    <item>
      <title>SAS cannot process TAB delimeter</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-cannot-process-TAB-delimeter/m-p/674061#M79292</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I used the exact code here in&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=n1w1xy48wd290bn1mqalitn7wy13.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=n1w1xy48wd290bn1mqalitn7wy13.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My sas somehow cannot separate the txt file columns by tab.&lt;/P&gt;&lt;P&gt;My log is pasted below:&lt;/P&gt;&lt;P&gt;I changed text color for line 87-89.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems that SAS knows that I'm using delimeter by tab.&lt;/P&gt;&lt;P&gt;It just fails to separate columns by '09'x&lt;/P&gt;&lt;P&gt;I'm using SAS Studio the web client with virtualbox win10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         proc import datafile="/folders/myfolders/BOOK/cert/class.txt" out=class dbms=dlm replace;
 74         datarow=5;
 75         delimiter='09'x;
 76         run;
 
&lt;FONT color="#FF0000"&gt; NOTE: Unable to open parameter catalog: SASUSER.PARMS.PARMS.SLIST in update mode. Temporary parameter values will be saved to 
 WORK.PARMS.PARMS.SLIST.&lt;/FONT&gt;
 77          /**********************************************************************
 78          *   PRODUCT:   SAS
 79          *   VERSION:   9.4
 80          *   CREATOR:   External File Interface
 81          *   DATE:      03AUG20
 82          *   DESC:      Generated SAS Datastep Code
 83          *   TEMPLATE SOURCE:  (None Specified.)
 84          ***********************************************************************/
 85             data WORK.CLASS    ;
 86             %let _EFIERR_ = 0; /* set the ERROR detection macro variable */
 87             infile '/folders/myfolders/BOOK/cert/class.txt' &lt;FONT color="#FF00FF"&gt;delimiter='09'x&lt;/FONT&gt; MISSOVER DSD lrecl=32767 firstobs=5 ;
 88                &lt;FONT color="#FF0000"&gt;informat Name_____Gender___Age $20. ;
 89                format Name_____Gender___Age $20. ;&lt;/FONT&gt;
 90             input
 91                         Name_____Gender___Age  $
 92             ;
 93             if _ERROR_ then call symputx('_EFIERR_',1);  /* set ERROR detection macro variable */
 94             run;
 
 NOTE: The infile '/folders/myfolders/BOOK/cert/class.txt' is:
       Filename=/folders/myfolders/BOOK/cert/class.txt,
       Owner Name=root,Group Name=vboxsf,
       Access Permission=-rwxrwx---,
       Last Modified=02Aug2020:19:43:43,
       &lt;FONT color="#FF0000"&gt;File Size (bytes)=1620&lt;/FONT&gt;
 
 NOTE: 16 records were read from the infile '/folders/myfolders/BOOK/cert/class.txt'.
&lt;FONT color="#FF0000"&gt;       The minimum record length was 80.
       The maximum record length was 80.&lt;/FONT&gt;
 NOTE: The data set WORK.CLASS has 16 observations and 1 variables.
 NOTE: DATA statement used (Total process time):
       real time           0.01 seconds
       cpu time            0.00 seconds
       
 
 16 rows created in WORK.CLASS from /folders/myfolders/BOOK/cert/class.txt.
   
   
   
 NOTE: WORK.CLASS data set was successfully created.
 NOTE: The data set WORK.CLASS has 16 observations and 1 variables.
 NOTE: PROCEDURE IMPORT used (Total process time):
       real time           0.11 seconds
       cpu time            0.05 seconds
       
 
 95         
 96         proc print data=class;
 97         run;
 
 NOTE: There were 16 observations read from the data set WORK.CLASS.
 NOTE: PROCEDURE PRINT used (Total process time):
       real time           0.05 seconds
       cpu time            0.05 seconds
       
 
 98         
 99         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 111        &lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Aug 2020 06:58:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-cannot-process-TAB-delimeter/m-p/674061#M79292</guid>
      <dc:creator>happy_sas_kitty</dc:creator>
      <dc:date>2020-08-03T06:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: SAS cannot process TAB delimeter</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-cannot-process-TAB-delimeter/m-p/674063#M79293</link>
      <description>&lt;P&gt;1) Have you run the proc export? You can ignore the note about the parameter catalog, as sas will overcome it. There is no log information expected of running the proc import.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) Are you sure that the delimiter is '09'x and not '_' .&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Why have you coded lines:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;informat Name_____Gender___Age $20. ;
 format Name_____Gender___Age $20. ;
     input
              Name_____Gender___Age  $
         ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;instead, just:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;    input   Name $  Gender $  Age  $ ;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 07:32:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-cannot-process-TAB-delimeter/m-p/674063#M79293</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-08-03T07:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAS cannot process TAB delimeter</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-cannot-process-TAB-delimeter/m-p/674068#M79294</link>
      <description>&lt;P&gt;If your source data is not sensitive the copy a few lines from the file and paste into a code box opened with the &amp;lt;/&amp;gt; icon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you "value" looks like&lt;/P&gt;
&lt;P&gt;"some name&amp;nbsp; female 23"&lt;/P&gt;
&lt;P&gt;all within a single set of quotes then the DSD option will not separate values&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since the generated variable name, instead of a more typical 3, then that makes a quote related issue possible.&lt;/P&gt;
&lt;P&gt;Do you get just part of the name or do all three values appear in the variable?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 08:09:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-cannot-process-TAB-delimeter/m-p/674068#M79294</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-08-03T08:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAS cannot process TAB delimeter</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-cannot-process-TAB-delimeter/m-p/675393#M79319</link>
      <description>&lt;LI-CODE lang="sas"&gt;Name_____Gender___Age&lt;/LI-CODE&gt;
&lt;P&gt;is a column name 'computed' by the External File Interface sub system invoked by Proc IMPORT when DBMS=DLM option is specified.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because the expected tab delimiter was properly specified as&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;delimiter='09'x;&lt;/PRE&gt;
&lt;P&gt;The underscores underscore the fact that the data file very likely has spaces instead of tabs.&amp;nbsp; By default, non SAS-name characters in the header row are replaced with underscore character (_).&amp;nbsp; The spaces, not being a name character nor a delimiter are converted to underscore (_)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The underscores in the EFI computed column&lt;/P&gt;
&lt;PRE&gt;Name_____Gender___Age&lt;BR /&gt;12345678901234567890123&lt;/PRE&gt;
&lt;P&gt;indicates what I surmise as &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/340087"&gt;@happy_sas_kitty&lt;/a&gt;&amp;nbsp;using a text editor configured with a tab stop setting of 3, and the editor replacing tabs with spaces upon File/Save.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Aug 2020 15:16:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-cannot-process-TAB-delimeter/m-p/675393#M79319</guid>
      <dc:creator>RichardDeVen</dc:creator>
      <dc:date>2020-08-08T15:16:29Z</dc:date>
    </item>
  </channel>
</rss>

