<?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: Table cannot be opened because it doesnt contain any columns. in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Table-cannot-be-opened-because-it-doesnt-contain-any-columns/m-p/757092#M10092</link>
    <description>Yeah, i tried both, the step is successful, but then when i try to edit the data, it comes out with this error... I tried with other files such xlsx as well, it also show this error... It this a bug that i should contact SAS for help?</description>
    <pubDate>Tue, 27 Jul 2021 10:33:50 GMT</pubDate>
    <dc:creator>Xaizz</dc:creator>
    <dc:date>2021-07-27T10:33:50Z</dc:date>
    <item>
      <title>Table cannot be opened because it doesnt contain any columns.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Table-cannot-be-opened-because-it-doesnt-contain-any-columns/m-p/757086#M10090</link>
      <description>&lt;P&gt;Thanks for wasting everyone who wasted their precious time looking at this post.&lt;BR /&gt;I am a starter of SAS Studio user.&lt;BR /&gt;I have faced the issue that the below picture had shown. &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="error.PNG" style="width: 651px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61896i6C1D040F2F01C805/image-size/large?v=v2&amp;amp;px=999" role="button" title="error.PNG" alt="error.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At first, I have thought it might be my dataset in CSV problems, then I go try it with other CSV files that it can work in earlier time, and it still shows this error... Please tell me what should I do to solve this...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Once again, highly appreciated all the help given.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 10:00:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Table-cannot-be-opened-because-it-doesnt-contain-any-columns/m-p/757086#M10090</guid>
      <dc:creator>Xaizz</dc:creator>
      <dc:date>2021-07-27T10:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Table cannot be opened because it doesnt contain any columns.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Table-cannot-be-opened-because-it-doesnt-contain-any-columns/m-p/757089#M10091</link>
      <description>&lt;P&gt;Reading the log may enlighten you.&lt;/P&gt;
&lt;P&gt;Have you read the csv-file by using a data step or by proc import? Was the step successful?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 10:25:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Table-cannot-be-opened-because-it-doesnt-contain-any-columns/m-p/757089#M10091</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-07-27T10:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Table cannot be opened because it doesnt contain any columns.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Table-cannot-be-opened-because-it-doesnt-contain-any-columns/m-p/757092#M10092</link>
      <description>Yeah, i tried both, the step is successful, but then when i try to edit the data, it comes out with this error... I tried with other files such xlsx as well, it also show this error... It this a bug that i should contact SAS for help?</description>
      <pubDate>Tue, 27 Jul 2021 10:33:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Table-cannot-be-opened-because-it-doesnt-contain-any-columns/m-p/757092#M10092</guid>
      <dc:creator>Xaizz</dc:creator>
      <dc:date>2021-07-27T10:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Table cannot be opened because it doesnt contain any columns.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Table-cannot-be-opened-because-it-doesnt-contain-any-columns/m-p/757094#M10093</link>
      <description>&lt;P&gt;Please post the log using the "insert code" button ... you can't read an excel-file using a data step, please note that there is a huge difference between xlsx and csv, the later is a proper file-format to store data, the other is, well, crap.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 10:38:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Table-cannot-be-opened-because-it-doesnt-contain-any-columns/m-p/757094#M10093</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-07-27T10:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Table cannot be opened because it doesnt contain any columns.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Table-cannot-be-opened-because-it-doesnt-contain-any-columns/m-p/757098#M10094</link>
      <description>&lt;P&gt;Please post the log of the step that reads the csv file. Post the complete log (code and messages). If lots of "Invalid data" messages appear, a few are sufficient so as to not clog up your post.&lt;/P&gt;
&lt;P&gt;Use this button to paste the log contents into your post:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54552i914D97BE1B0F21E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 10:44:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Table-cannot-be-opened-because-it-doesnt-contain-any-columns/m-p/757098#M10094</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-07-27T10:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Table cannot be opened because it doesnt contain any columns.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Table-cannot-be-opened-because-it-doesnt-contain-any-columns/m-p/757109#M10095</link>
      <description>&lt;PRE&gt;PROC IMPORT FILE="/home/u58811045/Assignment.csv"
	OUT=WORK.ASSIGNMENT2
	DBMS=CSV
	replace;
	
RUN;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.PNG" style="width: 659px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61897i60DEC0C4E1A4DF06/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt; data work.assignment;
    infile "/home/u58811045/Assignment.csv"
	delimiter = ","
	missover 
	dsd
	firstobs=2;
 
	informat id best32. ;
	informat name $37. ;
	informat host_id best32. ;
	informat host_name $9. ;
	informat neighbourhood_group $14. ;
	informat neighbourhood $12. ;
	informat latitude best32. ;
	informat longitude best32. ;
	informat room_type $15. ;
	informat price best32. ;
	informat minimum_nights best32. ;
	informat number_of_reviews best32. ;
	informat last_review mmddyy10. ;
	informat reviews_per_month best32. ;
	informat calculated_host_listings_count best32. ;
	informat availability_365 best32. ;

	format id best12. ;
	format name $37. ;
	format host_id best12. ;
	format host_name $9. ;
	format neighbourhood_group $14. ;
	format neighbourhood $12. ;
	format latitude best12. ;
	format longitude best12. ;
	format room_type $15. ;
	format price best12. ;
	format minimum_nights best12. ;
	format number_of_reviews best12. ;
	format last_review mmddyy10. ;	
	format reviews_per_month best12. ;
	format calculated_host_listings_count best12. ;
	format availability_365 best12. ;
 
	input
	id
	name  $
	host_id
	host_name  $
	neighbourhood_group  $
	neighbourhood  $
	latitude
	longitude
	room_type  $
	price
	minimum_nights
	number_of_reviews
	last_review
	reviews_per_month
	calculated_host_listings_count
	availability_365;
	
run;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.PNG" style="width: 686px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61898i7974E56BE5E5F8D7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But when i do this:&lt;/P&gt;&lt;PRE&gt;DATA work.assignment;
RUN;&lt;/PRE&gt;&lt;P&gt;It shows the same error again.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 12:10:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Table-cannot-be-opened-because-it-doesnt-contain-any-columns/m-p/757109#M10095</guid>
      <dc:creator>Xaizz</dc:creator>
      <dc:date>2021-07-27T12:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Table cannot be opened because it doesnt contain any columns.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Table-cannot-be-opened-because-it-doesnt-contain-any-columns/m-p/757113#M10096</link>
      <description>&lt;P&gt;This&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA work.assignment;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;will always create a totally void dataset; no variables, no observations.&lt;/P&gt;
&lt;P&gt;Why? Because you did not tell the data step to read anything (via INFILE/INPUT or a SET, MERGE or UPDATE statement), or to create anything from scratch (by setting variable(s) to value(s), and using OUTPUT).&lt;/P&gt;
&lt;P&gt;If a dataset WORK.ASSIGNMENT existed, with data in it, this step will overwrite it with no data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS Look at the log of just this step, and you will see it yourself. That's why there is a Maxim 2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PPS and this also illustrates why it is so important to post code and log. Had you included this snippet in your initial post, the solution would have been obvious right there.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 12:46:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Table-cannot-be-opened-because-it-doesnt-contain-any-columns/m-p/757113#M10096</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-07-27T12:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Table cannot be opened because it doesnt contain any columns.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Table-cannot-be-opened-because-it-doesnt-contain-any-columns/m-p/757115#M10097</link>
      <description>Ahhh... it works now!!!! Thank You Very Much!!!!</description>
      <pubDate>Tue, 27 Jul 2021 12:29:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Table-cannot-be-opened-because-it-doesnt-contain-any-columns/m-p/757115#M10097</guid>
      <dc:creator>Xaizz</dc:creator>
      <dc:date>2021-07-27T12:29:53Z</dc:date>
    </item>
  </channel>
</rss>

