<?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: Connecting SAS EG to Oracle in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-EG-to-Oracle/m-p/386976#M92732</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname CVS oracle user=XXXX password=XXXX PATH='edmp' schema='cvs_own';

DATA NEW;
SET CVS.IDWE_D_CALENDAR;
RUN;

PROC SQL;
CREATE TABLE NEW AS SELECT *FROM CVS.D_CALENDAR;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Above is the code I have so far. Seems to work up until the SET step. I recieve the error&lt;/P&gt;&lt;P&gt;"File CVS.IDWE_D_CALENDAR.DATA does not exist."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just stuck the table name in refrencing the example given above but not sure I referenced it accurately.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Aug 2017 13:05:41 GMT</pubDate>
    <dc:creator>Amber_Nicole94</dc:creator>
    <dc:date>2017-08-10T13:05:41Z</dc:date>
    <item>
      <title>Connecting SAS EG to Oracle</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-EG-to-Oracle/m-p/386760#M92673</link>
      <description>&lt;P&gt;I have access to SAS EG here at work. Currently, I have data download from a third party database (BOBJ) into multiple excel sheets which I then inport into SAS. However, in order to bypass the excel step I am attempting to connect straight to the oracle database in SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am brand new to oracle so am stuck when in comes to coding the connection. The following is some of the information I have.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname = CVS&lt;/P&gt;&lt;P&gt;oracle user = my user name&lt;/P&gt;&lt;P&gt;password = my password&lt;/P&gt;&lt;P&gt;path = edmp&lt;/P&gt;&lt;P&gt;schema = cvs_own&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Oracle tables are called:&lt;/P&gt;&lt;P&gt;IDWE_D_CALENDAR&lt;/P&gt;&lt;P&gt;IDWE_OWN.BUSINESS_TYPE&lt;/P&gt;&lt;P&gt;IDWE_OWN.ACCOUNT_NAME&lt;/P&gt;&lt;P&gt;ETC....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hoping smeone can assist in writing the code to bring in data with the same affect as importing an excel sheet. As specific as you can be would be appreciated as I am fairly new to the oracle piece!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 18:42:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-EG-to-Oracle/m-p/386760#M92673</guid>
      <dc:creator>Amber_Nicole94</dc:creator>
      <dc:date>2017-08-09T18:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SAS EG to Oracle</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-EG-to-Oracle/m-p/386770#M92680</link>
      <description>&lt;P&gt;Is EG installed locally? Or on a server? If it's a server, your IT area will need to do this for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it's locally, first set up the server in your computers ODBC setup, via the control panel.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then use something like the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname myDB dsn=myName schema=dbo;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can see a variation of these instructions in detail here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/techsup/technote/ts765.pdf" target="_blank"&gt;https://support.sas.com/techsup/technote/ts765.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 19:11:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-EG-to-Oracle/m-p/386770#M92680</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-09T19:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SAS EG to Oracle</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-EG-to-Oracle/m-p/386779#M92684</link>
      <description>&lt;P&gt;Yes, it is installed on a server. Using your resource&amp;nbsp;I was stopped at the "administrative tools" step because i dont have those privledges.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 19:24:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-EG-to-Oracle/m-p/386779#M92684</guid>
      <dc:creator>Amber_Nicole94</dc:creator>
      <dc:date>2017-08-09T19:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SAS EG to Oracle</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-EG-to-Oracle/m-p/386783#M92686</link>
      <description>&lt;P&gt;As suggested by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;you need to first do first define libname for Oracle database. For example&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname mydblib oracle user=testuser password=testpass path=hrdept_002;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example was copied from&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#a003113591.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#a003113591.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and then&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data work.tablenameasyouwant ; /*or any sas libname you want to store data*/&lt;/P&gt;
&lt;P&gt;set mydblib.tablenameofyourinterest;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 19:30:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-EG-to-Oracle/m-p/386783#M92686</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2017-08-09T19:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SAS EG to Oracle</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-EG-to-Oracle/m-p/386788#M92690</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/145393"&gt;@Amber_Nicole94&lt;/a&gt;&amp;nbsp;Someone who has admin privileges on the server will need to set it up then.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 19:40:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-EG-to-Oracle/m-p/386788#M92690</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-09T19:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SAS EG to Oracle</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-EG-to-Oracle/m-p/386976#M92732</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname CVS oracle user=XXXX password=XXXX PATH='edmp' schema='cvs_own';

DATA NEW;
SET CVS.IDWE_D_CALENDAR;
RUN;

PROC SQL;
CREATE TABLE NEW AS SELECT *FROM CVS.D_CALENDAR;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Above is the code I have so far. Seems to work up until the SET step. I recieve the error&lt;/P&gt;&lt;P&gt;"File CVS.IDWE_D_CALENDAR.DATA does not exist."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just stuck the table name in refrencing the example given above but not sure I referenced it accurately.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 13:05:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-EG-to-Oracle/m-p/386976#M92732</guid>
      <dc:creator>Amber_Nicole94</dc:creator>
      <dc:date>2017-08-10T13:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SAS EG to Oracle</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-EG-to-Oracle/m-p/387105#M92782</link>
      <description>&lt;P&gt;Run a proc datasets on the library and double check the data sets names that you need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc datasets lib=cvs;
run;quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Aug 2017 17:45:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-EG-to-Oracle/m-p/387105#M92782</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-10T17:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SAS EG to Oracle</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-EG-to-Oracle/m-p/387365#M92882</link>
      <description>&lt;P&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif"&gt;When I enter the suggested code above it states I do not have any datasets. I contacted my IT and I was told it should be good to go, and the "&lt;SPAN&gt;&lt;FONT size="3"&gt;ODBC data source is just the name of the database you want to use as a source for your data – so you have to identify that yourself first – could be EDWP or SAST or any other." So still unsure of why it is not working....&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 14:58:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-EG-to-Oracle/m-p/387365#M92882</guid>
      <dc:creator>Amber_Nicole94</dc:creator>
      <dc:date>2017-08-11T14:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SAS EG to Oracle</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-EG-to-Oracle/m-p/387369#M92884</link>
      <description>&lt;P&gt;Redo the libname and remove the quotes around the&amp;nbsp;values, I'm pretty sure it doesn't need them. I'm not certain about the path vs dsn specification so I'd try that as well.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname CVS oracle dsn = edmp user=XXXX password=XXXX schema=cvs_own;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Aug 2017 15:05:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-EG-to-Oracle/m-p/387369#M92884</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-11T15:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SAS EG to Oracle</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-EG-to-Oracle/m-p/387371#M92885</link>
      <description>&lt;P&gt;Is it ed&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;M&lt;/STRONG&gt;&lt;/FONT&gt;p or ed&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;W&lt;/FONT&gt;&lt;/STRONG&gt;p, M or W? Your code uses EDMP and your later post references EDWP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 15:07:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-EG-to-Oracle/m-p/387371#M92885</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-11T15:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SAS EG to Oracle</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-EG-to-Oracle/m-p/387378#M92886</link>
      <description>&lt;P&gt;It is EDMP, the W was an error from my tech support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was finally directed to someone who said&amp;nbsp;I do need access to the Oracel Client to set up ODCB. So I have put that request in. Once it is approved I will come back and try the suggetions above once more.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 15:25:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-EG-to-Oracle/m-p/387378#M92886</guid>
      <dc:creator>Amber_Nicole94</dc:creator>
      <dc:date>2017-08-11T15:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SAS EG to Oracle</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-EG-to-Oracle/m-p/387381#M92887</link>
      <description>&lt;P&gt;If your server is connected you shouldn't...only if you're working locally.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But there may be something about your set up that we don't know, so I'd follow your companies advice for now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 15:32:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-EG-to-Oracle/m-p/387381#M92887</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-11T15:32:22Z</dc:date>
    </item>
  </channel>
</rss>

