<?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: create a link to the parameters of the connection to the database in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/create-a-link-to-the-parameters-of-the-connection-to-the/m-p/736935#M229693</link>
    <description>&lt;P&gt;Put your connection information into a macro:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro connectORA;
connect to oracle (AuthDomain = "Oracle_Auth" PATH = "@ dev-db.sas.ru:1521/SASDEV");
%mend;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and call it in your SQL:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
%connectORA;
select * from connection to oracle (select * from cdm.ci_campaign);
disconnect from oracle;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I your example, no CONNECT and DISCONNECT would be needed, as the SELECT works directly from a SAS library (which might be defined as a connection to Oracle on its own). But I guess that CDM is in fact a schema in the Oracle database, and not available in the SAS environment on its own.&lt;/P&gt;</description>
    <pubDate>Mon, 26 Apr 2021 10:32:53 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2021-04-26T10:32:53Z</dc:date>
    <item>
      <title>create a link to the parameters of the connection to the database</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-a-link-to-the-parameters-of-the-connection-to-the/m-p/736932#M229691</link>
      <description>&lt;P&gt;Hello.&lt;BR /&gt;I recently started learning programming in sas.&lt;BR /&gt;Who can tell you how to create a permanent symbolic link?&lt;BR /&gt;When performing any tasks, I often turn to the database with an sql query, which should be executed in the database server and return the result to me.&lt;/P&gt;&lt;P&gt;This is how I do it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
connect to oracle (AuthDomain = "Oracle_Auth" PATH = "@ dev-db.sas.ru:1521/SASDEV");
select * from cdm.ci_campaign;
disconnect from oracle;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's how I would like to simplify it:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
&amp;amp;connectORA.;
select * from cdm.ci_campaign;
disconnect from oracle;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Apr 2021 09:44:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-a-link-to-the-parameters-of-the-connection-to-the/m-p/736932#M229691</guid>
      <dc:creator>Shukhrat</dc:creator>
      <dc:date>2021-04-26T09:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: create a link to the parameters of the connection to the database</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-a-link-to-the-parameters-of-the-connection-to-the/m-p/736935#M229693</link>
      <description>&lt;P&gt;Put your connection information into a macro:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro connectORA;
connect to oracle (AuthDomain = "Oracle_Auth" PATH = "@ dev-db.sas.ru:1521/SASDEV");
%mend;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and call it in your SQL:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
%connectORA;
select * from connection to oracle (select * from cdm.ci_campaign);
disconnect from oracle;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I your example, no CONNECT and DISCONNECT would be needed, as the SELECT works directly from a SAS library (which might be defined as a connection to Oracle on its own). But I guess that CDM is in fact a schema in the Oracle database, and not available in the SAS environment on its own.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 10:32:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-a-link-to-the-parameters-of-the-connection-to-the/m-p/736935#M229693</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-04-26T10:32:53Z</dc:date>
    </item>
  </channel>
</rss>

