<?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: Can't save imported excel spreadsheet into Library in SAS University in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Can-t-save-imported-excel-spreadsheet-into-Library-in-SAS/m-p/613370#M179114</link>
    <description>&lt;P&gt;I reimported the data and am now trying to get summary statistics. I get this error message&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*
 *
 * Code cannot be generated because the following 
 * roles are not set: 
 *
 *  Analysis variables: (minimum: 1)
 *
 *
 */&amp;nbsp;How&amp;nbsp;do&amp;nbsp;I&amp;nbsp;add&amp;nbsp;a&amp;nbsp;variable&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 21 Dec 2019 01:11:06 GMT</pubDate>
    <dc:creator>ehuck22</dc:creator>
    <dc:date>2019-12-21T01:11:06Z</dc:date>
    <item>
      <title>Can't save imported excel spreadsheet into Library in SAS University</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-save-imported-excel-spreadsheet-into-Library-in-SAS/m-p/613365#M179110</link>
      <description>&lt;P&gt;I am trying to do summary statistics on excel spreadsheet I have written the code and tried to save it to a library.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC IMPORT DATAFILE="/folders/myfolders/MIS445/MIS445_FRED-real_GDP.xlsx"
		    OUT=WORK.FRED
		    DBMS=XLSX
		    REPLACE;
RUN;

/** Print the results. **/


LIBNAME MIS445 "/folders/myfolders/MIS445;
data work.FRED;
	SET MIS445.FRED;

RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I then go to the Task and Utilities section and click on the summary statistics. The Summary window tells me that I need to pick a data set from "MyLibraries" but my data set is not in there.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second, I keep getting an error saying that there are no columns. Please help.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Dec 2019 00:09:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-save-imported-excel-spreadsheet-into-Library-in-SAS/m-p/613365#M179110</guid>
      <dc:creator>ehuck22</dc:creator>
      <dc:date>2019-12-21T00:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can't save imported excel spreadsheet into Library in SAS University</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-save-imported-excel-spreadsheet-into-Library-in-SAS/m-p/613368#M179113</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/304355"&gt;@ehuck22&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am trying to do summary statistics on excel spreadsheet I have written the code and tried to save it to a library.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC IMPORT DATAFILE="/folders/myfolders/MIS445/MIS445_FRED-real_GDP.xlsx"
		    OUT=WORK.FRED
		    DBMS=XLSX
		    REPLACE;
RUN;

/** Print the results. **/


LIBNAME MIS445 "/folders/myfolders/MIS445;
data work.FRED; &lt;STRONG&gt;&amp;lt;= The data set name here is the OUTPUT set, likely you meant the MIS445.Fred.&lt;/STRONG&gt;
	SET MIS445.FRED; &lt;STRONG&gt;&amp;lt;= the data set here is the INPUT, likely the one created by Proc Import above&lt;/STRONG&gt;

RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I then go to the Task and Utilities section and click on the summary statistics. The Summary window tells me that I need to pick a data set from "MyLibraries" but my data set is not in there.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second, I keep getting an error saying that there are no columns. Please help.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;However depending on what actually happened you may have destroyed your work.fred and need to reimport it.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Dec 2019 00:24:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-save-imported-excel-spreadsheet-into-Library-in-SAS/m-p/613368#M179113</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-12-21T00:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can't save imported excel spreadsheet into Library in SAS University</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-save-imported-excel-spreadsheet-into-Library-in-SAS/m-p/613370#M179114</link>
      <description>&lt;P&gt;I reimported the data and am now trying to get summary statistics. I get this error message&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*
 *
 * Code cannot be generated because the following 
 * roles are not set: 
 *
 *  Analysis variables: (minimum: 1)
 *
 *
 */&amp;nbsp;How&amp;nbsp;do&amp;nbsp;I&amp;nbsp;add&amp;nbsp;a&amp;nbsp;variable&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 21 Dec 2019 01:11:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-save-imported-excel-spreadsheet-into-Library-in-SAS/m-p/613370#M179114</guid>
      <dc:creator>ehuck22</dc:creator>
      <dc:date>2019-12-21T01:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can't save imported excel spreadsheet into Library in SAS University</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-save-imported-excel-spreadsheet-into-Library-in-SAS/m-p/613378#M179116</link>
      <description>&lt;P&gt;Your code makes no sense:&lt;/P&gt;
&lt;P&gt;1. You create table WORK.FRED twice, so the first version (created from the excel data) is overwritten&lt;/P&gt;
&lt;P&gt;2. I see no analysis performed in that code.&amp;nbsp; How do you summarise?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Dec 2019 04:50:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-save-imported-excel-spreadsheet-into-Library-in-SAS/m-p/613378#M179116</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-12-21T04:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can't save imported excel spreadsheet into Library in SAS University</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-save-imported-excel-spreadsheet-into-Library-in-SAS/m-p/613412#M179136</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME MIS445 "/folders/myfolders/MIS445;

PROC IMPORT DATAFILE="/folders/myfolders/MIS445/MIS445_FRED-real_GDP.xlsx"
		    OUT= MIS445.FRED;
		    DBMS=XLSX
		    REPLACE;
RUN;


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Just import the excel file right into a permanent dataset in the stored in the location pointed to by&amp;nbsp;&lt;CODE class=" language-sas"&gt;MIS445 and then start your summary statistics&amp;nbsp;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Dec 2019 00:26:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-save-imported-excel-spreadsheet-into-Library-in-SAS/m-p/613412#M179136</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2019-12-22T00:26:13Z</dc:date>
    </item>
  </channel>
</rss>

