<?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: Connect to metadata server with options in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Connect-to-metadata-server-with-options/m-p/784172#M23487</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/397901"&gt;@kimmygzc&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From your posts what I understand is that you are having SAS installed on a remote servers and you are running the code in EG. You are able to to successfully connect to the greenplum database. However you are not able to connect in the batch mode.&lt;/P&gt;
&lt;P&gt;Typically when database access is through the metadata server and the code is executed in batch mode one uses the authomain= option. ( Look here for the details.&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/n0aiq25zc8u8u6n1i81my0a24sd3.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/n0aiq25zc8u8u6n1i81my0a24sd3.htm&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;There are more resource available on the google. )&lt;/P&gt;
&lt;P&gt;Make sure that the batch code is executing on the compute server with database clients installed and configured. A goodplace in your case would be the compute server where you have executed your code through EG.&lt;/P&gt;
&lt;P&gt;In organizations with good security practices the developers do not have access to database credentials. Authdomain approach is almost invariably used.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a rule if one has to connect to remote databases (databases not installed on the same computer) then database clients/drivers need to be installed. (There are exceptions but in the SAS practice no).&lt;BR /&gt;The implementation of SAS and best practices&amp;nbsp; differ from organization to organization. SAS Administrators/ Seniors in the organaztion are often very helpful and the first persons to seek help from.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 05 Dec 2021 13:39:56 GMT</pubDate>
    <dc:creator>Sajid01</dc:creator>
    <dc:date>2021-12-05T13:39:56Z</dc:date>
    <item>
      <title>Connect to metadata server with options</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Connect-to-metadata-server-with-options/m-p/782823#M23444</link>
      <description>I'm using SAS EG 7.1 with sasfoundation 9.3;

I connect to a greenplum server via a metadata server(log in a remote SVC in connection setup with user&amp;amp;pwd). And I could commit SQLs to GreenPlum server with libname statement, or pass-through machanisim. It works fine, and for some reason, I need to run without EG, just on sas.exe.

So the trouble is, when I tried to connect to setup metadata server connection with [options], under this instruction:
&lt;A href="https://support.sas.com/kb/38/204.html" target="_blank"&gt;https://support.sas.com/kb/38/204.html&lt;/A&gt;

The log reported error: 
ERROR: CLI error trying to establish connection: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver
specified
ERROR: Error in the LIBNAME statement.

I believe it hasn't made the right connection to GreenPlum yet, Why would sas bother with MS ODBS? What should I do to adjust this? It's just a tricky trouble to shoot, any reply would be greatly appreciated!

Kim Tse</description>
      <pubDate>Mon, 29 Nov 2021 06:46:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Connect-to-metadata-server-with-options/m-p/782823#M23444</guid>
      <dc:creator>kimmygzc</dc:creator>
      <dc:date>2021-11-29T06:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to metadata server with options</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Connect-to-metadata-server-with-options/m-p/782824#M23445</link>
      <description>&lt;P&gt;Please provide the SAS log from the program successfully connecting to Greenplum and also the SAS log from your unsuccessful attempt. Ensure you include both the source statements and any SAS notes and errors.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 07:05:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Connect-to-metadata-server-with-options/m-p/782824#M23445</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-11-29T07:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to metadata server with options</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Connect-to-metadata-server-with-options/m-p/782826#M23446</link>
      <description>I'd love to, but the SAS is on Cloud environment...&lt;BR /&gt;&lt;BR /&gt;Basically, Connect to greenplum server with [server, port, databse, authdomain] when use EG connection. I guess EG works with the authomain option, to log in the Greenplum server.&lt;BR /&gt;&lt;BR /&gt;I need to get the same credential without EG before actually connect to Greenplum, I tried options [matauser, metapass, metaport, metaprotocol(bridge), metaserver], but it doesn't work...</description>
      <pubDate>Mon, 29 Nov 2021 07:15:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Connect-to-metadata-server-with-options/m-p/782826#M23446</guid>
      <dc:creator>kimmygzc</dc:creator>
      <dc:date>2021-11-29T07:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to metadata server with options</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Connect-to-metadata-server-with-options/m-p/782928#M23452</link>
      <description>Are you running sas.exe on the compute server where Enterprise Guide runs SAS? The error seems to indicate you are trying to call an ODBC data source that is not configured, which could occur if you are running SAS somewhere else.</description>
      <pubDate>Mon, 29 Nov 2021 15:32:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Connect-to-metadata-server-with-options/m-p/782928#M23452</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2021-11-29T15:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to metadata server with options</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Connect-to-metadata-server-with-options/m-p/782979#M23458</link>
      <description>&lt;P&gt;Just copy and paste from your EG SAS log for showing a successful SAS log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To ensure you get the same data libraries defined in SAS batch jobs as you get in SAS EG sessions you just need to pre-assign the libraries. This is an advanced option you can set on the data library in SAS Management Console.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 19:23:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Connect-to-metadata-server-with-options/m-p/782979#M23458</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-11-29T19:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to metadata server with options</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Connect-to-metadata-server-with-options/m-p/783070#M23464</link>
      <description>Thanks! I have SAS EG 7.1 and sas 9.3 installed, I'm not sure if the EG works standalone or through another computing node, where do I check this?&lt;BR /&gt;&lt;BR /&gt;I have EG connections configured [remote machine], I think this offers access to the SVC(switched virtual circuit), where the GP user id and password is stored. And via the SVC I can finally commit my SQLs to the Greenplum Server.&lt;BR /&gt;&lt;BR /&gt;I'm trying to plug in the SVC in sas.exe without EG's help, I guess you're right about ODBC, is there anything I might have ignored?</description>
      <pubDate>Tue, 30 Nov 2021 06:27:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Connect-to-metadata-server-with-options/m-p/783070#M23464</guid>
      <dc:creator>kimmygzc</dc:creator>
      <dc:date>2021-11-30T06:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to metadata server with options</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Connect-to-metadata-server-with-options/m-p/783071#M23465</link>
      <description>Thanks Sir, But I can't copy anything down from the internal network...&lt;BR /&gt;&lt;BR /&gt; I scripted proc sql to select from sashlep.cars and it works out fine. But the other proc sql connected to GP just won't make it, I tried both [libname] statement and [connect to greenplum], which I normally build connections to the GP server in EG, but it failed in only sas.exe.&lt;BR /&gt;&lt;BR /&gt;Are there more information about the "pre-assign" and about "SAS Management Console" you mentioned? &lt;BR /&gt;&lt;BR /&gt;Thanks for your time, Sir.</description>
      <pubDate>Tue, 30 Nov 2021 06:36:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Connect-to-metadata-server-with-options/m-p/783071#M23465</guid>
      <dc:creator>kimmygzc</dc:creator>
      <dc:date>2021-11-30T06:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to metadata server with options</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Connect-to-metadata-server-with-options/m-p/783072#M23466</link>
      <description>The code in EG goes like this:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[libname]statement:&lt;BR /&gt;libname CON greenplm server= port= database= authdomain=;&lt;BR /&gt;pro sql outobs=30;&lt;BR /&gt;select *&lt;BR /&gt;from CON.table_nm&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;or pass-through:&lt;BR /&gt;proc sql;&lt;BR /&gt;connect to greenplm as gpconn(server= port= database= authdomain=);&lt;BR /&gt;select * from connection to gpconn(&lt;BR /&gt;select *&lt;BR /&gt;from ap1.table_nm&lt;BR /&gt;limit 30&lt;BR /&gt;);&lt;BR /&gt;disconnect from gpconn;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;these would work in EG, but failed in sas.exe. the difference is EG connect to SVC with user&amp;amp;password every time it initiates.</description>
      <pubDate>Tue, 30 Nov 2021 06:53:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Connect-to-metadata-server-with-options/m-p/783072#M23466</guid>
      <dc:creator>kimmygzc</dc:creator>
      <dc:date>2021-11-30T06:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to metadata server with options</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Connect-to-metadata-server-with-options/m-p/783140#M23467</link>
      <description>This SAS Note describes the failure meaning you do not have the driver installed:&lt;BR /&gt;&lt;BR /&gt;Usage Note 44774: System Requirements for SAS/ACCESS® 9.3 Interface to Greenplum in Windows environments&lt;BR /&gt;&lt;A href="https://support.sas.com/kb/44/774.html" target="_blank"&gt;https://support.sas.com/kb/44/774.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Error:&lt;BR /&gt;libname myconn greenplm server="192.168.123.45" port=5432 database=test user=gpuser password=XXXXXXX schema=public;&lt;BR /&gt;&lt;BR /&gt;CLI error trying to establish connection: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified&lt;BR /&gt;ERROR: Error in the LIBNAME statement.&lt;BR /&gt;&lt;BR /&gt;Cause: The "SAS ACCESS to Greenplum" driver has not been installed. Be sure to follow the directions in the readme.txt file, including making the appropriate manual entries in the Windows registry.&lt;BR /&gt;&lt;BR /&gt;Note: The zip files containing the drivers and readme.txt can be found here:&lt;BR /&gt;&lt;BR /&gt;For 32-bit SAS: !SASROOT\access\sasmisc\w32gplm60.zip&lt;BR /&gt;For 64-bit SAS: !SASROOT\access\sasmisc\wx6gplm60.zip&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Nov 2021 14:10:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Connect-to-metadata-server-with-options/m-p/783140#M23467</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2021-11-30T14:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to metadata server with options</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Connect-to-metadata-server-with-options/m-p/784172#M23487</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/397901"&gt;@kimmygzc&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From your posts what I understand is that you are having SAS installed on a remote servers and you are running the code in EG. You are able to to successfully connect to the greenplum database. However you are not able to connect in the batch mode.&lt;/P&gt;
&lt;P&gt;Typically when database access is through the metadata server and the code is executed in batch mode one uses the authomain= option. ( Look here for the details.&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/n0aiq25zc8u8u6n1i81my0a24sd3.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/n0aiq25zc8u8u6n1i81my0a24sd3.htm&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;There are more resource available on the google. )&lt;/P&gt;
&lt;P&gt;Make sure that the batch code is executing on the compute server with database clients installed and configured. A goodplace in your case would be the compute server where you have executed your code through EG.&lt;/P&gt;
&lt;P&gt;In organizations with good security practices the developers do not have access to database credentials. Authdomain approach is almost invariably used.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a rule if one has to connect to remote databases (databases not installed on the same computer) then database clients/drivers need to be installed. (There are exceptions but in the SAS practice no).&lt;BR /&gt;The implementation of SAS and best practices&amp;nbsp; differ from organization to organization. SAS Administrators/ Seniors in the organaztion are often very helpful and the first persons to seek help from.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Dec 2021 13:39:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Connect-to-metadata-server-with-options/m-p/784172#M23487</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-12-05T13:39:56Z</dc:date>
    </item>
  </channel>
</rss>

