<?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 getting problem with PROC IMPORT in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/getting-problem-with-PROC-IMPORT/m-p/5612#M1780</link>
    <description>Hi i am using proc import to upload data from excel to sas . I got 4 seets to upload I used this code &lt;BR /&gt;
.proc&lt;BR /&gt;
&lt;BR /&gt;
import out=bible &lt;BR /&gt;
&lt;BR /&gt;
datafile='C:\Documents and Settings\calapati\Desktop\European Specialisation_Cert Data-Sept07.xls' &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
DBMS=Excel replace;  &lt;BR /&gt;
sheet= Microsoft Excel Worksheet;&lt;BR /&gt;
&lt;BR /&gt;
getnames=yes;&lt;BR /&gt;
&lt;BR /&gt;
mixed=yes;&lt;BR /&gt;
&lt;BR /&gt;
scantext=yes;&lt;BR /&gt;
&lt;BR /&gt;
usedate=yes;&lt;BR /&gt;
&lt;BR /&gt;
scantime=yes;&lt;BR /&gt;
&lt;BR /&gt;
run;&lt;BR /&gt;
but i can able to upload only one sheet . WHY I AM NOT ABLE TO UPLOAD OTHER FILE . CAN ANY ONE CAN LET ME KNOW  WHAT I DID MISTAKE&lt;BR /&gt;
&lt;BR /&gt;
THANKS&lt;BR /&gt;
CHANDRA</description>
    <pubDate>Fri, 23 Nov 2007 10:29:02 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2007-11-23T10:29:02Z</dc:date>
    <item>
      <title>getting problem with PROC IMPORT</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/getting-problem-with-PROC-IMPORT/m-p/5612#M1780</link>
      <description>Hi i am using proc import to upload data from excel to sas . I got 4 seets to upload I used this code &lt;BR /&gt;
.proc&lt;BR /&gt;
&lt;BR /&gt;
import out=bible &lt;BR /&gt;
&lt;BR /&gt;
datafile='C:\Documents and Settings\calapati\Desktop\European Specialisation_Cert Data-Sept07.xls' &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
DBMS=Excel replace;  &lt;BR /&gt;
sheet= Microsoft Excel Worksheet;&lt;BR /&gt;
&lt;BR /&gt;
getnames=yes;&lt;BR /&gt;
&lt;BR /&gt;
mixed=yes;&lt;BR /&gt;
&lt;BR /&gt;
scantext=yes;&lt;BR /&gt;
&lt;BR /&gt;
usedate=yes;&lt;BR /&gt;
&lt;BR /&gt;
scantime=yes;&lt;BR /&gt;
&lt;BR /&gt;
run;&lt;BR /&gt;
but i can able to upload only one sheet . WHY I AM NOT ABLE TO UPLOAD OTHER FILE . CAN ANY ONE CAN LET ME KNOW  WHAT I DID MISTAKE&lt;BR /&gt;
&lt;BR /&gt;
THANKS&lt;BR /&gt;
CHANDRA</description>
      <pubDate>Fri, 23 Nov 2007 10:29:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/getting-problem-with-PROC-IMPORT/m-p/5612#M1780</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-11-23T10:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: getting problem with PROC IMPORT</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/getting-problem-with-PROC-IMPORT/m-p/5613#M1781</link>
      <description>Hi:&lt;BR /&gt;
  The WORKBOOK is what you specify on the DATAFILE= option. Each sheet within the WORKBOOK must be specified with the Sheet name option. You can only specify 1 worksheet per PROC IMPORT step. If you specify 2 SHEET= options, the last SHEET= option will be the sheet used for the IMPORT.&lt;BR /&gt;
&lt;BR /&gt;
  Perhaps these Tech Support notes and user papers will help:&lt;BR /&gt;
 &lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/6/988.html" target="_blank"&gt;http://support.sas.com/kb/6/988.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/6/353.html" target="_blank"&gt;http://support.sas.com/kb/6/353.html&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
If you want to put ALL the sheets into 1 SAS dataset, one approach is to create a temp file for each sheet and then bring all together in a separate step.&lt;BR /&gt;
&lt;BR /&gt;
Or, as described in one of the above notes, you could use a SAS Macro program to import multiple worksheets using PROC IMPORT or DATA step code.&lt;BR /&gt;
&lt;BR /&gt;
Or, you could use the SAS Excel Libname engine (with SAS 9 and SAS/Access to PC File Formats):&lt;BR /&gt;
[pre]&lt;BR /&gt;
libname mywb "c:\temp\threesheet.xls";&lt;BR /&gt;
    &lt;BR /&gt;
data new;&lt;BR /&gt;
  set mywb.'names1$'n &lt;BR /&gt;
       mywb.'names2$'n &lt;BR /&gt;
       mywb.'names3$'n;&lt;BR /&gt;
run;&lt;BR /&gt;
  &lt;BR /&gt;
proc print data=new;&lt;BR /&gt;
run;&lt;BR /&gt;
   &lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
would import all 3 sheets into WORK.NEW using the SAS/Excel Libname engine.&lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 23 Nov 2007 17:32:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/getting-problem-with-PROC-IMPORT/m-p/5613#M1781</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-11-23T17:32:49Z</dc:date>
    </item>
  </channel>
</rss>

