<?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: ERROR: Output SAS data set must be provided. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Output-SAS-data-set-must-be-provided/m-p/257825#M49555</link>
    <description>&lt;P&gt;You have extra semicolons in your PROC IMPORT statments.&lt;/P&gt;
&lt;P&gt;OUT, DBMS, REPLACE are all parts of PROC IMPORT, and must end up by only one semicolon.&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC IMPORT DATAFILE="/home/teleous0/Cody/drugtest.xls"
		    OUT=mtl.drugtest
		    DBMS=XLS;

GETNAMES=YES;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also GETNAMES valid values only is YES or NO. Which&amp;nbsp;specifies whether the IMPORT procedure generate SAS variable names from the data values in the first record in the input file or not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 20 Mar 2016 06:34:57 GMT</pubDate>
    <dc:creator>mohamed_zaki</dc:creator>
    <dc:date>2016-03-20T06:34:57Z</dc:date>
    <item>
      <title>ERROR: Output SAS data set must be provided.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Output-SAS-data-set-must-be-provided/m-p/257823#M49554</link>
      <description>&lt;P&gt;* Using SAS Studio 9.2, I believe&lt;/P&gt;&lt;P&gt;THE CHALLENGE&lt;/P&gt;&lt;P&gt;Sometimes the simplest things throw you. As I review, I find I am having trouble importing an excel spreadsheet. I have&amp;nbsp;written&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC IMPORT DATAFILE="/home/teleous0/Cody/drugtest.xls"
		    OUT=mtl.drugtest;
		    DBMS=XLS;
		    GETNAMES=drugtest;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am receiving the following message:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR: Output SAS data set must be provided.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No warnings but I have five notes (three of the notes are standard but the other two I don’t fully understand, given the statements I’ve written (see below)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: ODS PDF(WEB) printed no output.
       (This sometimes results from failing to place a RUN statement before the ODS PDF(WEB) CLOSE statement.)
 70         FILENAME _GSFNAME;
 NOTE: Fileref _GSFNAME has been deassigned.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'VE TRIED&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have (1) copied and pasted the path directly from properties, (2) double checked to be sure the dbms is .xls, (3) used the same name and different six character names for the “out=statement, (4) added ‘replace’ as part of the out statement (5) added &amp;amp; deleted the ‘sheet=xyz’ statement (there is only one sheet) (6) responded to “get names with ‘Yes’, ‘No’ and deleting the statement all together and (7) I've tried it saving the data in both the work and the permanent library. I’ve been on line and nothing I’ve tried works; I still get the error message. Please help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: Using the SNIPPET didn’t work either.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 20 Mar 2016 04:56:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Output-SAS-data-set-must-be-provided/m-p/257823#M49554</guid>
      <dc:creator>teleous0</dc:creator>
      <dc:date>2016-03-20T04:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Output SAS data set must be provided.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Output-SAS-data-set-must-be-provided/m-p/257825#M49555</link>
      <description>&lt;P&gt;You have extra semicolons in your PROC IMPORT statments.&lt;/P&gt;
&lt;P&gt;OUT, DBMS, REPLACE are all parts of PROC IMPORT, and must end up by only one semicolon.&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC IMPORT DATAFILE="/home/teleous0/Cody/drugtest.xls"
		    OUT=mtl.drugtest
		    DBMS=XLS;

GETNAMES=YES;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also GETNAMES valid values only is YES or NO. Which&amp;nbsp;specifies whether the IMPORT procedure generate SAS variable names from the data values in the first record in the input file or not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Mar 2016 06:34:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Output-SAS-data-set-must-be-provided/m-p/257825#M49555</guid>
      <dc:creator>mohamed_zaki</dc:creator>
      <dc:date>2016-03-20T06:34:57Z</dc:date>
    </item>
  </channel>
</rss>

