<?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: Im in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Im/m-p/103972#M21719</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not just use LIBNAME statements so that you can treat the Oracle database and Excel file the same as other SAS datasets?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname out oracle user=xx orapw=yyy path=zzz schema=aaa ;&lt;/P&gt;&lt;P&gt;libname in excel 'myfile.xls';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data out.want ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set in.have;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might need to play around a little to find the name of the sheet in the excel file that you want to read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SAS there does not need to be a separate step to "create" a table before writing data into it.&amp;nbsp; SAS will create the table as it writes it.&amp;nbsp; The same way as when you "Save as" in Word.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jul 2012 19:22:28 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2012-07-10T19:22:28Z</dc:date>
    <item>
      <title>Im</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Im/m-p/103971#M21718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone!!!&lt;/P&gt;&lt;P&gt;I am new to this forum. I want to create one table in oracle from SAS and then import 1.5 lakh records from excel. How is it possible. Can anyone help me&lt;/P&gt;&lt;P&gt;Can I use import/export procedure. Please help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using another approach but its not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; connect to oracle as EXT1 (user=xx orapw=xxx path=xxxx);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; create table temp as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Select * from connection to EXT1 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (SELECT&amp;nbsp; num_id from master where num_id in (1.5 recordsss..............)');&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2012 19:14:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Im/m-p/103971#M21718</guid>
      <dc:creator>dash</dc:creator>
      <dc:date>2012-07-10T19:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Im</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Im/m-p/103972#M21719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not just use LIBNAME statements so that you can treat the Oracle database and Excel file the same as other SAS datasets?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname out oracle user=xx orapw=yyy path=zzz schema=aaa ;&lt;/P&gt;&lt;P&gt;libname in excel 'myfile.xls';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data out.want ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set in.have;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might need to play around a little to find the name of the sheet in the excel file that you want to read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SAS there does not need to be a separate step to "create" a table before writing data into it.&amp;nbsp; SAS will create the table as it writes it.&amp;nbsp; The same way as when you "Save as" in Word.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2012 19:22:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Im/m-p/103972#M21719</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-07-10T19:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Im</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Im/m-p/103973#M21720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tom, But I am getting error. I am totally new to SAS. Could you please explain me in details.&lt;/P&gt;&lt;P&gt;ERROR: The EXCEL engine cannot be found.&lt;/P&gt;&lt;P&gt;ERROR: Error in the LIBNAME statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname out oracle user=scott orapw=tiger path=orcl ;&lt;/P&gt;&lt;P&gt;libname in excel 'N:\abc\asd.xls';&lt;/P&gt;&lt;P&gt; data out.want ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set in.have;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2012 19:34:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Im/m-p/103973#M21720</guid>
      <dc:creator>dash</dc:creator>
      <dc:date>2012-07-10T19:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Im</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Im/m-p/103974#M21721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the error you get if SAS/ACCESS for PC Files is either not installed or licensed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run: PROC SETINIT NOALIAS; RUN; to confirm if you have this product licenced or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not licensed then you can save the Excel spreadsheet as a CSV file then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;PROC&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;IMPORT&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;OUT&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; = my_spreadsheet&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FILE = &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;"c:\my_spreadsheet.csv"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;DBMS&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; = CSV&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REPLACE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;RUN&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;You can then follow Tom's solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2012 20:06:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Im/m-p/103974#M21721</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2012-07-10T20:06:12Z</dc:date>
    </item>
  </channel>
</rss>

