<?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 importing .xls in SAS PERMANENTLY in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/importing-xls-in-SAS-PERMANENTLY/m-p/62578#M13628</link>
    <description>Hi ,&lt;BR /&gt;
&lt;BR /&gt;
I've an execl file ' laptop_review.xls' and want to import in SAS Permanently in 'C' . &lt;BR /&gt;
&lt;BR /&gt;
i used a code :&lt;BR /&gt;
&lt;BR /&gt;
libname dis "C:\Cwa";&lt;BR /&gt;
PROC IMPORT OUT= WORK.sales1&lt;BR /&gt;
            DATAFILE= "C:\laptop_review.xls" &lt;BR /&gt;
            DBMS=EXCEL REPLACE;&lt;BR /&gt;
     SHEET="review"; &lt;BR /&gt;
     GETNAMES=YES;&lt;BR /&gt;
     MIXED=YES;&lt;BR /&gt;
     USEDATE=YES;&lt;BR /&gt;
     SCANTIME=YES;&lt;BR /&gt;
RUN;&lt;BR /&gt;
proc print data=sales1;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
it works in the SAS windows but its not created permanently in 'C' &lt;BR /&gt;
&lt;BR /&gt;
Kind  regards &lt;BR /&gt;
markc</description>
    <pubDate>Sat, 27 Feb 2010 09:09:28 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-02-27T09:09:28Z</dc:date>
    <item>
      <title>importing .xls in SAS PERMANENTLY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/importing-xls-in-SAS-PERMANENTLY/m-p/62578#M13628</link>
      <description>Hi ,&lt;BR /&gt;
&lt;BR /&gt;
I've an execl file ' laptop_review.xls' and want to import in SAS Permanently in 'C' . &lt;BR /&gt;
&lt;BR /&gt;
i used a code :&lt;BR /&gt;
&lt;BR /&gt;
libname dis "C:\Cwa";&lt;BR /&gt;
PROC IMPORT OUT= WORK.sales1&lt;BR /&gt;
            DATAFILE= "C:\laptop_review.xls" &lt;BR /&gt;
            DBMS=EXCEL REPLACE;&lt;BR /&gt;
     SHEET="review"; &lt;BR /&gt;
     GETNAMES=YES;&lt;BR /&gt;
     MIXED=YES;&lt;BR /&gt;
     USEDATE=YES;&lt;BR /&gt;
     SCANTIME=YES;&lt;BR /&gt;
RUN;&lt;BR /&gt;
proc print data=sales1;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
it works in the SAS windows but its not created permanently in 'C' &lt;BR /&gt;
&lt;BR /&gt;
Kind  regards &lt;BR /&gt;
markc</description>
      <pubDate>Sat, 27 Feb 2010 09:09:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/importing-xls-in-SAS-PERMANENTLY/m-p/62578#M13628</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-02-27T09:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: importing .xls in SAS PERMANENTLY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/importing-xls-in-SAS-PERMANENTLY/m-p/62579#M13629</link>
      <description>Hi:&lt;BR /&gt;
  You have asked this same question many times already, and the fact that you are asking again implies that you have not read any of the suggested documentation on the topic of temporary vs permanent SAS libraries. &lt;BR /&gt;
You have EXPLICITLY coded:&lt;BR /&gt;
[pre]&lt;BR /&gt;
OUT=WORK.sales1&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
 ...which means that the file will only live in the WORK library during your SAS session and will go away when the SAS session is over.&lt;BR /&gt;
&lt;BR /&gt;
  You have a LIBNAME statement in your code:&lt;BR /&gt;
 [pre]&lt;BR /&gt;
libname dis "C:\Cwa";&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                            &lt;BR /&gt;
  this means that&lt;BR /&gt;
[pre]&lt;BR /&gt;
OUT=DIS.sales1&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                                                                    &lt;BR /&gt;
  ...would cause the dataset to be written to the physical location:&lt;BR /&gt;
&lt;B&gt;c:\Cwa\sales1.sas7bdat &lt;/B&gt; (which is how the dataset looks in Windows Explorer). &lt;BR /&gt;
&lt;BR /&gt;
The reference &lt;B&gt;DIS.SALES1&lt;/B&gt; is the proper TWO-LEVEL name for a permanent SAS dataset, as described in my previous answer to this same question in this post: &lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=32427纫" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=32427纫&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
  Other folks have also explained how to save a dataset permanently in response to this same and related questions in these postings:&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=32418红" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=32418红&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=32344繘" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=32344繘&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=32368繰" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=32368繰&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
I still suggest that you read some of the documentation about SAS datasets and the concepts of a SAS library -- both permanent and temporary.&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a000086013.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a000086013.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a002316278.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a002316278.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000986902.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000986902.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000930616.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000930616.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a002316280.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a002316280.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000998603.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000998603.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Understanding how a SAS LIBNAME statement works and understanding the difference between WORK and permanent SAS libraries and how to use LIBREFs is fundamental knowledge -- &lt;BR /&gt;
you will not be successful in your SAS programming endeavors without taking the time to really understand these concepts.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Sat, 27 Feb 2010 16:16:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/importing-xls-in-SAS-PERMANENTLY/m-p/62579#M13629</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-02-27T16:16:53Z</dc:date>
    </item>
  </channel>
</rss>

