<?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: libname statement in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/libname-statement/m-p/71927#M20792</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
For the remote connection, that happens at the time of logon, it connects to the remote SAS server &amp;amp; teradata. &lt;BR /&gt;
After that when I assign the libname statement to connect to the particular schema on the remote server, that is successfully executed and I can access the tables.&lt;BR /&gt;
For eg.&lt;BR /&gt;
&lt;BR /&gt;
rsubmit;&lt;BR /&gt;
1st statement;&lt;BR /&gt;
data test;&lt;BR /&gt;
set tr_schema.tr_tbl_name;&lt;BR /&gt;
run;&lt;BR /&gt;
endrsubmit;&lt;BR /&gt;
&lt;BR /&gt;
This is successful.&lt;BR /&gt;
&lt;BR /&gt;
Now what I want is, as I can display the Remote work library on the library explorer, using the 2nd statement successfully on the local libraries explorer, I want the same for the teradata library in my project explorer on Local, for which I tried to execute the 3rd statement, but that doesn't work.&lt;BR /&gt;
&lt;BR /&gt;
I hope the above information helps in understanding the problem.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Saurabh.</description>
    <pubDate>Mon, 29 Mar 2010 15:31:58 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-03-29T15:31:58Z</dc:date>
    <item>
      <title>libname statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/libname-statement/m-p/71923#M20788</link>
      <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
I want to create a link to a remote teradata schema in my library explorer window.&lt;BR /&gt;
&lt;BR /&gt;
I am trying the following code:&lt;BR /&gt;
&lt;BR /&gt;
rsubmit;&lt;BR /&gt;
1st statement- libname test teradata user='scott' password='tiger' database=schema_name;&lt;BR /&gt;
endrsubmit;&lt;BR /&gt;
&lt;BR /&gt;
2nd statement-  libname rwork server=remoteserver slibref=work;&lt;BR /&gt;
3rd statement- libname tera server = teradata  user='scott' password='tiger' slibref = test;&lt;BR /&gt;
&lt;BR /&gt;
Here TEST library is successfully assigned on the server in the 1st statement.&lt;BR /&gt;
&lt;BR /&gt;
In the 2nd statement I am trying to link remote WORK to explorer window, which works totally fine.&lt;BR /&gt;
&lt;BR /&gt;
But the 3rd statement does not work.&lt;BR /&gt;
Can someone help me with this.&lt;BR /&gt;
&lt;BR /&gt;
Thanks &amp;amp; Regards,&lt;BR /&gt;
Saurabh.</description>
      <pubDate>Mon, 29 Mar 2010 10:37:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/libname-statement/m-p/71923#M20788</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-03-29T10:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: libname statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/libname-statement/m-p/71924#M20789</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Have you already tried to execute your first statement without the remote submit statements (rsubmit; and endrsubmit;) ?&lt;BR /&gt;
&lt;BR /&gt;
Just an idea...&lt;BR /&gt;
&lt;BR /&gt;
Kind regards,&lt;BR /&gt;
Florent</description>
      <pubDate>Mon, 29 Mar 2010 13:01:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/libname-statement/m-p/71924#M20789</guid>
      <dc:creator>Florent</dc:creator>
      <dc:date>2010-03-29T13:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: libname statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/libname-statement/m-p/71925#M20790</link>
      <description>Hi Florent,&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the reply !&lt;BR /&gt;
Since I will be using the teradata schema tables with the tables already on SAS remote server, so I need to run the first statement with RSUBMIT. &lt;BR /&gt;
&lt;BR /&gt;
As per, mapping the work directory on the remote server using the 2nd statement works, &lt;BR /&gt;
but I don't know where is the 3rd statement wrong in terms of the connection.&lt;BR /&gt;
Please check the log for more info.&lt;BR /&gt;
&lt;BR /&gt;
ERROR: Attempt to connect to server TERA failed.&lt;BR /&gt;
ERROR: A communication subsystem partner link setup request failure has occurred.&lt;BR /&gt;
ERROR: Cannot find TCP service 'tera'.&lt;BR /&gt;
ERROR: Error in the LIBNAME statement.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks &amp;amp; Regards,&lt;BR /&gt;
Saurabh.</description>
      <pubDate>Mon, 29 Mar 2010 13:19:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/libname-statement/m-p/71925#M20790</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-03-29T13:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: libname statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/libname-statement/m-p/71926#M20791</link>
      <description>Emerald,&lt;BR /&gt;
&lt;BR /&gt;
You're welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
When establishing the connection to your remote server (signon statement), do you define 'teradata' as remote session id (the 'remote=' part of your signon statement)?&lt;BR /&gt;
&lt;BR /&gt;
Libname statement has the following syntax:&lt;BR /&gt;
LIBNAME libref &amp;lt;'SAS-data-library'&amp;gt; SERVER=remote-session-id &lt;ACCESS&gt; &lt;OUTREP&gt; &lt;SLIBREF&gt; &lt;ENGINE-OPTIONS&gt;;&lt;BR /&gt;
&lt;BR /&gt;
You have to make sure that the 'remote_session_id' that you use in your libname statement is the same that the one defined when establishing the connection to your remote server.&lt;BR /&gt;
&lt;BR /&gt;
Hope it helps.&lt;BR /&gt;
&lt;BR /&gt;
Kr,&lt;BR /&gt;
Florent&lt;/ENGINE-OPTIONS&gt;&lt;/SLIBREF&gt;&lt;/OUTREP&gt;&lt;/ACCESS&gt;</description>
      <pubDate>Mon, 29 Mar 2010 13:33:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/libname-statement/m-p/71926#M20791</guid>
      <dc:creator>Florent</dc:creator>
      <dc:date>2010-03-29T13:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: libname statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/libname-statement/m-p/71927#M20792</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
For the remote connection, that happens at the time of logon, it connects to the remote SAS server &amp;amp; teradata. &lt;BR /&gt;
After that when I assign the libname statement to connect to the particular schema on the remote server, that is successfully executed and I can access the tables.&lt;BR /&gt;
For eg.&lt;BR /&gt;
&lt;BR /&gt;
rsubmit;&lt;BR /&gt;
1st statement;&lt;BR /&gt;
data test;&lt;BR /&gt;
set tr_schema.tr_tbl_name;&lt;BR /&gt;
run;&lt;BR /&gt;
endrsubmit;&lt;BR /&gt;
&lt;BR /&gt;
This is successful.&lt;BR /&gt;
&lt;BR /&gt;
Now what I want is, as I can display the Remote work library on the library explorer, using the 2nd statement successfully on the local libraries explorer, I want the same for the teradata library in my project explorer on Local, for which I tried to execute the 3rd statement, but that doesn't work.&lt;BR /&gt;
&lt;BR /&gt;
I hope the above information helps in understanding the problem.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Saurabh.</description>
      <pubDate>Mon, 29 Mar 2010 15:31:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/libname-statement/m-p/71927#M20792</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-03-29T15:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: libname statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/libname-statement/m-p/71928#M20793</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I understand your problem and I'm pretty sure that the issue that you're facing with your third statement is related to the server name that you're using (following part: server = teradata).&lt;BR /&gt;
&lt;BR /&gt;
3rd statement: libname tera server = teradata user='scott' password='tiger' slibref = test;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
You have to make sure that it corresponds to the server name that you specified when connecting to the remote SAS server (maybe could you provide me with the connection statement(s) after removing the username and password info from it ?).&lt;BR /&gt;
&lt;BR /&gt;
Here is an example of connection to a remote SAS server (where the part 'remote=SasHost' should be equal to 'remote=teradata' in your case):&lt;BR /&gt;
&lt;BR /&gt;
%let SasHost = &lt;PATH to="" your="" remote="" sas="" server=""&gt;;&lt;BR /&gt;
options comamid=TCP remote=SasHost;&lt;BR /&gt;
signon username=&lt;USERNAME&gt; password=&lt;PASSWORD&gt;;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
It's also possible that you only have one statement to connect to your remote SAS server... I'm used to split it in 3 as you can see in the previous example.&lt;BR /&gt;
&lt;BR /&gt;
Kind regards,&lt;BR /&gt;
Florent&lt;/PASSWORD&gt;&lt;/USERNAME&gt;&lt;/PATH&gt;</description>
      <pubDate>Mon, 29 Mar 2010 16:12:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/libname-statement/m-p/71928#M20793</guid>
      <dc:creator>Florent</dc:creator>
      <dc:date>2010-03-29T16:12:29Z</dc:date>
    </item>
  </channel>
</rss>

