<?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: &amp;quot;Table Cannot Be Opened&amp;quot; in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/quot-Table-Cannot-Be-Opened-quot/m-p/232016#M42266</link>
    <description>&lt;P&gt;Thanks so much JoshB!&lt;/P&gt;</description>
    <pubDate>Wed, 28 Oct 2015 14:38:47 GMT</pubDate>
    <dc:creator>pawaterman</dc:creator>
    <dc:date>2015-10-28T14:38:47Z</dc:date>
    <item>
      <title>"Table Cannot Be Opened"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-Table-Cannot-Be-Opened-quot/m-p/231996#M42259</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a permanent SAS data set and I cannot open the the file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error reads '&lt;SPAN class="dialogContentSpan"&gt;&lt;SPAN class="dialogMessageSpan"&gt;T&lt;EM&gt;he table "FINAL1.MERGED_DATA" cannot be opened because it does not contain any columns&lt;/EM&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="dialogContentSpan"&gt;&lt;SPAN class="dialogMessageSpan"&gt;Any insight into why I cannot open the file would be most helpful and much appreciated.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;Below please find my code:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="dialogContentSpan"&gt;&lt;SPAN class="dialogMessageSpan"&gt;data dataone;&lt;BR /&gt;infile '/folders/myfolders/DATA1.TXT' firstobs=7;&lt;BR /&gt;input DATE YYMMDD6. DAY BP CD DM;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;data datatwo;&lt;BR /&gt;infile '/folders/myfolders/DATA2.TXT' firstobs=7;&lt;BR /&gt;input DATE YYMMDD6. DAY JY SF;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc sort data=dataone;&lt;BR /&gt;by DATE;&lt;BR /&gt;&lt;BR /&gt;proc sort data=datatwo;&lt;BR /&gt;by DATE;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;data merged_data;&lt;BR /&gt;format DATE YYMMDD6. DAY BP CD DM JY SF;&lt;BR /&gt;merge dataone datatwo;&lt;BR /&gt;by DATE;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;libname final1 '/folders/myfolders/final1';&lt;BR /&gt;data final1.merged_data;&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2015 13:49:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-Table-Cannot-Be-Opened-quot/m-p/231996#M42259</guid>
      <dc:creator>pawaterman</dc:creator>
      <dc:date>2015-10-28T13:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: "Table Cannot Be Opened"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-Table-Cannot-Be-Opened-quot/m-p/231998#M42260</link>
      <description>&lt;P&gt;Did you get any other errors, for instance for you infile statements?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The data step merge probably also has an error. The format statement applies the YYMMDD6. format to your date variable but subsequently&amp;nbsp;listing the other variables in the format statement without supplying a format might also cause an error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any error along the way will stop a data set from being created.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2015 13:54:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-Table-Cannot-Be-Opened-quot/m-p/231998#M42260</guid>
      <dc:creator>MaikH_Schutze</dc:creator>
      <dc:date>2015-10-28T13:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: "Table Cannot Be Opened"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-Table-Cannot-Be-Opened-quot/m-p/231999#M42261</link>
      <description>&lt;P&gt;Assuming you don't have any errors before this point, you are missing the part of your last data step that writes out the table you created above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname final1 '/folders/myfolders/final1';
data final1.merged_data;
  set merged_data;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you do have other errors, please post.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2015 13:56:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-Table-Cannot-Be-Opened-quot/m-p/231999#M42261</guid>
      <dc:creator>JoshB</dc:creator>
      <dc:date>2015-10-28T13:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: "Table Cannot Be Opened"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-Table-Cannot-Be-Opened-quot/m-p/232004#M42264</link>
      <description>&lt;P&gt;Yes, as JoshB has stated, because you are missing the set statement from the final datastep, SAS creates an empty dataset which has no observations or columns. Hence you get that error of no columns.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2015 14:11:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-Table-Cannot-Be-Opened-quot/m-p/232004#M42264</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-10-28T14:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: "Table Cannot Be Opened"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-Table-Cannot-Be-Opened-quot/m-p/232016#M42266</link>
      <description>&lt;P&gt;Thanks so much JoshB!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2015 14:38:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-Table-Cannot-Be-Opened-quot/m-p/232016#M42266</guid>
      <dc:creator>pawaterman</dc:creator>
      <dc:date>2015-10-28T14:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: "Table Cannot Be Opened"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-Table-Cannot-Be-Opened-quot/m-p/232017#M42267</link>
      <description>&lt;P&gt;Much appreciated RW9!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2015 14:40:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-Table-Cannot-Be-Opened-quot/m-p/232017#M42267</guid>
      <dc:creator>pawaterman</dc:creator>
      <dc:date>2015-10-28T14:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: "Table Cannot Be Opened"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-Table-Cannot-Be-Opened-quot/m-p/232019#M42269</link>
      <description>&lt;P&gt;Good points.&lt;BR /&gt;&lt;BR /&gt;However, I did not have any errors .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2015 14:42:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-Table-Cannot-Be-Opened-quot/m-p/232019#M42269</guid>
      <dc:creator>pawaterman</dc:creator>
      <dc:date>2015-10-28T14:42:23Z</dc:date>
    </item>
  </channel>
</rss>

