<?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 input *.tbl in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Data-input-tbl/m-p/597377#M172109</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/44100"&gt;@jacksonan123&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have a data set which looks like this &lt;FONT color="#ff0000" size="4"&gt;&lt;STRONG&gt;when converted to a *.cvs file.&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt; The original name is&amp;nbsp;&lt;/P&gt;
&lt;P&gt;param.tbl.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ID TIME CMT ETA1 ETA2 ETA3 ETA4 ETA5&lt;BR /&gt;9.00E+00 0.00E+00 1.00E+00 4.29E-01 4.74E-02 -1.42E-05 1.27E-01 9.78E-03&lt;BR /&gt;9.00E+00 0.00E+00 2.00E+00 4.29E-01 4.74E-02 -1.42E-05 1.27E-01 9.78E-03&lt;BR /&gt;9.00E+00 0.00E+00 3.00E+00 4.29E-01 4.74E-02 -1.42E-05 1.27E-01 9.78E-03&lt;BR /&gt;9.00E+00 0.00E+00 4.00E+00 4.29E-01 4.74E-02 -1.42E-05 1.27E-01 9.78E-03&lt;BR /&gt;9.00E+00 0.00E+00 5.00E+00 4.29E-01 4.74E-02 -1.42E-05 1.27E-01 9.78E-03&lt;BR /&gt;9.00E+00 0.00E+00 6.00E+00 4.29E-01 4.74E-02 -1.42E-05 1.27E-01 9.78E-03&lt;BR /&gt;9.00E+00 0.00E+00 7.00E+00 4.29E-01 4.74E-02 -1.42E-05 1.27E-01 9.78E-03&lt;/P&gt;
&lt;P&gt;When I run this code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;dATA NEW;
infile &lt;FONT color="#ff0000"&gt;'/folders/myfolders/AptensioPARAM/TEST1.nm7/PARAM.TBL'&lt;/FONT&gt; END=EOF TERMSTR=LF;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I get this response either with or without the termstr=lf,&amp;nbsp; which I used since I thought that it may be a unix file.&amp;nbsp; I need to know what type of input statement do I need to read this file?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you converted your TBL to CSV then why are you reading the TBL file????&lt;/P&gt;
&lt;P&gt;Or why are showing a not-actually-a csv file if you want to read the TBL?&lt;/P&gt;
&lt;P&gt;Copy the first few rows from the TBL file and paste them into a code box on the forum opened using the {I} icon to show us what the file actually looks like.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Oct 2019 15:00:03 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-10-17T15:00:03Z</dc:date>
    <item>
      <title>Data input *.tbl</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-input-tbl/m-p/597334#M172099</link>
      <description>&lt;P&gt;I have a data set which looks like this when converted to a *.cvs file.&amp;nbsp; The original name is&amp;nbsp;&lt;/P&gt;&lt;P&gt;param.tbl.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID TIME CMT ETA1 ETA2 ETA3 ETA4 ETA5&lt;BR /&gt;9.00E+00 0.00E+00 1.00E+00 4.29E-01 4.74E-02 -1.42E-05 1.27E-01 9.78E-03&lt;BR /&gt;9.00E+00 0.00E+00 2.00E+00 4.29E-01 4.74E-02 -1.42E-05 1.27E-01 9.78E-03&lt;BR /&gt;9.00E+00 0.00E+00 3.00E+00 4.29E-01 4.74E-02 -1.42E-05 1.27E-01 9.78E-03&lt;BR /&gt;9.00E+00 0.00E+00 4.00E+00 4.29E-01 4.74E-02 -1.42E-05 1.27E-01 9.78E-03&lt;BR /&gt;9.00E+00 0.00E+00 5.00E+00 4.29E-01 4.74E-02 -1.42E-05 1.27E-01 9.78E-03&lt;BR /&gt;9.00E+00 0.00E+00 6.00E+00 4.29E-01 4.74E-02 -1.42E-05 1.27E-01 9.78E-03&lt;BR /&gt;9.00E+00 0.00E+00 7.00E+00 4.29E-01 4.74E-02 -1.42E-05 1.27E-01 9.78E-03&lt;/P&gt;&lt;P&gt;When I run this code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;dATA NEW;
infile '/folders/myfolders/AptensioPARAM/TEST1.nm7/PARAM.TBL' END=EOF TERMSTR=LF;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I get this response either with or without the termstr=lf,&amp;nbsp; which I used since I thought that it may be a unix file.&amp;nbsp; I need to know what type of input statement do I need to read this file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get this dialog box:&lt;/P&gt;&lt;P&gt;The table can't be opened because it does not contain any columns.&lt;/P&gt;&lt;P&gt;I get this log.&lt;/P&gt;&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;72&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;73 dATA NEW;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;74 infile '/folders/myfolders/AptensioPARAM/TEST1.nm7/PARAM.TBL' END=EOF TERMSTR=LF;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;75 RUN;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The infile '/folders/myfolders/AptensioPARAM/TEST1.nm7/PARAM.TBL' is:&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Filename=/folders/myfolders/AptensioPARAM/TEST1.nm7/PARAM.TBL,&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Owner Name=root,Group Name=root,&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Access Permission=-rwxrwxrwx,&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Last Modified=07Jun2018:14:54:02,&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;File Size (bytes)=3168667&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: 0 records were read from the infile '/folders/myfolders/AptensioPARAM/TEST1.nm7/PARAM.TBL'.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The data set WORK.NEW has 1 observations and 0 variables.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: DATA statement used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 0.01 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;cpu time 0.02 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;76&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;77 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;89&lt;/DIV&gt;&lt;PRE class="sasLog"&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 14:13:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-input-tbl/m-p/597334#M172099</guid>
      <dc:creator>jacksonan123</dc:creator>
      <dc:date>2019-10-17T14:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Data input *.tbl</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-input-tbl/m-p/597336#M172101</link>
      <description>&lt;P&gt;You never defined any variables. Or told the data step to read from the file at all.&amp;nbsp; That is why you got:&lt;/P&gt;
&lt;PRE&gt;NOTE: 0 records were read from the infile '/folders/myfolders/AptensioPARAM/TEST1.nm7/PARAM.TBL'.
NOTE: The data set WORK.NEW has 1 observations and 0 variables.&lt;/PRE&gt;
&lt;P&gt;Tell it to try actually reading the data.&amp;nbsp; You probably want to skip over that header line.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data NEW;
  infile '/folders/myfolders/AptensioPARAM/TEST1.nm7/PARAM.TBL' 
   firstobs=2 truncover 
  ;
  input ID TIME CMT ETA1 ETA2 ETA3 ETA4 ETA5;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 14:19:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-input-tbl/m-p/597336#M172101</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-17T14:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Data input *.tbl</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-input-tbl/m-p/597377#M172109</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/44100"&gt;@jacksonan123&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have a data set which looks like this &lt;FONT color="#ff0000" size="4"&gt;&lt;STRONG&gt;when converted to a *.cvs file.&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt; The original name is&amp;nbsp;&lt;/P&gt;
&lt;P&gt;param.tbl.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ID TIME CMT ETA1 ETA2 ETA3 ETA4 ETA5&lt;BR /&gt;9.00E+00 0.00E+00 1.00E+00 4.29E-01 4.74E-02 -1.42E-05 1.27E-01 9.78E-03&lt;BR /&gt;9.00E+00 0.00E+00 2.00E+00 4.29E-01 4.74E-02 -1.42E-05 1.27E-01 9.78E-03&lt;BR /&gt;9.00E+00 0.00E+00 3.00E+00 4.29E-01 4.74E-02 -1.42E-05 1.27E-01 9.78E-03&lt;BR /&gt;9.00E+00 0.00E+00 4.00E+00 4.29E-01 4.74E-02 -1.42E-05 1.27E-01 9.78E-03&lt;BR /&gt;9.00E+00 0.00E+00 5.00E+00 4.29E-01 4.74E-02 -1.42E-05 1.27E-01 9.78E-03&lt;BR /&gt;9.00E+00 0.00E+00 6.00E+00 4.29E-01 4.74E-02 -1.42E-05 1.27E-01 9.78E-03&lt;BR /&gt;9.00E+00 0.00E+00 7.00E+00 4.29E-01 4.74E-02 -1.42E-05 1.27E-01 9.78E-03&lt;/P&gt;
&lt;P&gt;When I run this code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;dATA NEW;
infile &lt;FONT color="#ff0000"&gt;'/folders/myfolders/AptensioPARAM/TEST1.nm7/PARAM.TBL'&lt;/FONT&gt; END=EOF TERMSTR=LF;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I get this response either with or without the termstr=lf,&amp;nbsp; which I used since I thought that it may be a unix file.&amp;nbsp; I need to know what type of input statement do I need to read this file?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you converted your TBL to CSV then why are you reading the TBL file????&lt;/P&gt;
&lt;P&gt;Or why are showing a not-actually-a csv file if you want to read the TBL?&lt;/P&gt;
&lt;P&gt;Copy the first few rows from the TBL file and paste them into a code box on the forum opened using the {I} icon to show us what the file actually looks like.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 15:00:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-input-tbl/m-p/597377#M172109</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-10-17T15:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Data input *.tbl</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-input-tbl/m-p/597405#M172130</link>
      <description>Because I will have 200 such files and trying to convert each would be very&lt;BR /&gt;time consuming. A prior response gave the correct answer.&lt;BR /&gt;&lt;BR /&gt;I needed to name the variables and then it an okay.&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Oct 2019 16:01:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-input-tbl/m-p/597405#M172130</guid>
      <dc:creator>jacksonan123</dc:creator>
      <dc:date>2019-10-17T16:01:14Z</dc:date>
    </item>
  </channel>
</rss>

