<?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: Creating Tables in Database through Sas in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creating-Tables-in-Database-through-Sas/m-p/9319#M475</link>
    <description>Hi, &lt;BR /&gt;
&lt;BR /&gt;
Thanks for replying!&lt;BR /&gt;
&lt;BR /&gt;
I figured out another way of doing this, if you use the below command, you can pretty much execute the DBMS cOMMANDS IN SAS.&lt;BR /&gt;
&lt;BR /&gt;
proq sql;&lt;BR /&gt;
execute;&lt;BR /&gt;
&lt;BR /&gt;
after connecting to the dbms through remote server, we can just wqrite execute and you can write statements to create table directly in the database, which it can execute.</description>
    <pubDate>Sun, 06 Apr 2008 15:51:18 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-04-06T15:51:18Z</dc:date>
    <item>
      <title>Creating Tables in Database through Sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Tables-in-Database-through-Sas/m-p/9317#M473</link>
      <description>I usually use Toad or SqlPlus to create a table in Datawarehouse. Can we use some command in SAS to create tables in warehouses. I know Proq Sql can be sued to retreive data from a warehouse, not sure if there is a command to create table in warehouse?&lt;BR /&gt;
&lt;BR /&gt;
Thanks in Advance</description>
      <pubDate>Sat, 05 Apr 2008 14:39:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Tables-in-Database-through-Sas/m-p/9317#M473</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-04-05T14:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Tables in Database through Sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Tables-in-Database-through-Sas/m-p/9318#M474</link>
      <description>Depending on your needs, here are 2 ways to create your Oracle table from SAS. Find documentation at &lt;A href="http://support.sas.com/onlinedoc/913/docMainpage.jsp" target="_blank"&gt;http://support.sas.com/onlinedoc/913/docMainpage.jsp&lt;/A&gt;.&lt;BR /&gt;
&lt;BR /&gt;
1. Bulk Load to invoke Oracle SQL*Loader for lots of rows&lt;BR /&gt;
LIBNAME sasflt 'SAS-Data-Library';&lt;BR /&gt;
LIBNAME ora_air ORACLE &lt;BR /&gt;
                          USER=testuser &lt;BR /&gt;
                          PASS=testpass &lt;BR /&gt;
                          PATH='ora8_flt' &lt;BR /&gt;
                          SCHEMA=statsdiv;&lt;BR /&gt;
&lt;BR /&gt;
PROC SQL STIMER _METHOD THREADS; &lt;BR /&gt;
  CREATE TABLE ora_air.flights98 (BULKLOAD=YES  &lt;BR /&gt;
                                                     BL_OPTIONS='ERRORS=899,LOAD=5000'&lt;BR /&gt;
                                                   ) AS&lt;BR /&gt;
    SELECT     * &lt;BR /&gt;
    FROM        sasflt.flt98&lt;BR /&gt;
  ;&lt;BR /&gt;
QUIT;&lt;BR /&gt;
&lt;BR /&gt;
2. PROC DBLOAD&lt;BR /&gt;
LIBNAME adlib 'SAS-data-library';&lt;BR /&gt;
LIBNAME dlib 'SAS-data-library';&lt;BR /&gt;
&lt;BR /&gt;
PROC DBLOAD DBMS=ORACLE DATA=dlib.rateofex;&lt;BR /&gt;
  USER=testuser; &lt;BR /&gt;
  ORAPW=testpass;&lt;BR /&gt;
  PATH='myorapath';&lt;BR /&gt;
  TABLE=exchange;&lt;BR /&gt;
  ACCDESC=adlib.exchange;&lt;BR /&gt;
  RENAME fgnindol=fgnindolar 4=dolrsinfgn;&lt;BR /&gt;
  NULLS updated=n fgnindol=n 4=n country=n;&lt;BR /&gt;
  LOAD;&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
PROC DBLOAD DBMS=ORACLE;&lt;BR /&gt;
  USER=testuser; &lt;BR /&gt;
  ORAPW=testpass;&lt;BR /&gt;
  PATH='myorapath';&lt;BR /&gt;
  SQL GRANT SELECT ON testuser.exchange TO pham;&lt;BR /&gt;
RUN;</description>
      <pubDate>Sat, 05 Apr 2008 20:29:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Tables-in-Database-through-Sas/m-p/9318#M474</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-04-05T20:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Tables in Database through Sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Tables-in-Database-through-Sas/m-p/9319#M475</link>
      <description>Hi, &lt;BR /&gt;
&lt;BR /&gt;
Thanks for replying!&lt;BR /&gt;
&lt;BR /&gt;
I figured out another way of doing this, if you use the below command, you can pretty much execute the DBMS cOMMANDS IN SAS.&lt;BR /&gt;
&lt;BR /&gt;
proq sql;&lt;BR /&gt;
execute;&lt;BR /&gt;
&lt;BR /&gt;
after connecting to the dbms through remote server, we can just wqrite execute and you can write statements to create table directly in the database, which it can execute.</description>
      <pubDate>Sun, 06 Apr 2008 15:51:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Tables-in-Database-through-Sas/m-p/9319#M475</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-04-06T15:51:18Z</dc:date>
    </item>
  </channel>
</rss>

