<?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: Use Sas libname on Server(Remote) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Use-Sas-libname-on-Server-Remote/m-p/827180#M326730</link>
    <description>&lt;P&gt;I cannot figure out what you are asking about.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is no reason you have to use a different member name as you did in your example.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc download data=remote.member out=local.member status=n; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or perhaps use the SELECT statement with the INLIB= and OUTLIB= options?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc download inlib=remote outlib=local status=n;
  select member1 member2;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You might also want to look at the INHERITLIB= option on the SIGNON command.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/connref/p0brzkmxqg483hn163ek01h4mf6e.htm" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/connref/p0brzkmxqg483hn163ek01h4mf6e.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Aug 2022 18:08:15 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2022-08-04T18:08:15Z</dc:date>
    <item>
      <title>Use Sas libname on Server(Remote)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Use-Sas-libname-on-Server-Remote/m-p/826987#M326659</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I am using PC SAS 9.x and&lt;BR /&gt;trying to use a SAS libname (Local , Teradata or Oracle) in a SAS remote session.&lt;BR /&gt;I have tried assigning the Libname within the Rsubmit;&lt;BR /&gt;I'm still getting the libname not assigned Error:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I have SAS access interface to&lt;BR /&gt;DB2,Oracle,Teradata, PC Files, OFBC, and to MYSQL.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;RSUBMIT;&lt;BR /&gt;Libname dbtmp teradata user = myname password = xxxxxx tpid = 'xxxxx' schema = 'aaaaaaa';&lt;BR /&gt;&lt;BR /&gt;Libname Winlib 'local path';&lt;BR /&gt;&lt;BR /&gt;Data winlib.emp;&lt;BR /&gt;Set tmpdb.employee;&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;EndRsubmit;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Aug 2022 19:40:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Use-Sas-libname-on-Server-Remote/m-p/826987#M326659</guid>
      <dc:creator>Santt0sh</dc:creator>
      <dc:date>2022-08-03T19:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Use Sas libname on Server(Remote)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Use-Sas-libname-on-Server-Remote/m-p/826988#M326660</link>
      <description>&lt;P&gt;Please post the complete SAS log including all SAS messages of your RSUBMIT program.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 19:48:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Use-Sas-libname-on-Server-Remote/m-p/826988#M326660</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-08-03T19:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Use Sas libname on Server(Remote)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Use-Sas-libname-on-Server-Remote/m-p/826989#M326661</link>
      <description>&lt;P&gt;I assume you are trying to copy files from a libref that works on the REMOTE session to a libref that works on the LOCAL session.&amp;nbsp; Why not use PROC DOWNLOAD?&amp;nbsp; That is what it is for.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Libname Winlib 'local path';

rsubmit;
libname dbtmp teradata user = myname password = xxxxxx tpid = 'xxxxx' schema = 'aaaaaaa';

proc download status=n out=winlib.emp data=tmpdb.employee;
run;
endrsubmit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Aug 2022 19:56:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Use-Sas-libname-on-Server-Remote/m-p/826989#M326661</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-08-03T19:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Use Sas libname on Server(Remote)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Use-Sas-libname-on-Server-Remote/m-p/827171#M326725</link>
      <description>Hi Tom!&lt;BR /&gt;&lt;BR /&gt;Thank You for your response,&lt;BR /&gt;The Proc download is working fine with the libname assignments but when I m trying to take a count of the previously created dataset saved on the sas library.&lt;BR /&gt;I can use the previous created dataset from in Remwork by name it as prev or some other name. But one of my colleagues who was doing things manually doesn't like this or wants to see the same names datasets&lt;BR /&gt;&lt;BR /&gt;I'm not sure how do I attach the logs to this post.</description>
      <pubDate>Thu, 04 Aug 2022 17:06:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Use-Sas-libname-on-Server-Remote/m-p/827171#M326725</guid>
      <dc:creator>Santt0sh</dc:creator>
      <dc:date>2022-08-04T17:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Use Sas libname on Server(Remote)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Use-Sas-libname-on-Server-Remote/m-p/827180#M326730</link>
      <description>&lt;P&gt;I cannot figure out what you are asking about.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is no reason you have to use a different member name as you did in your example.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc download data=remote.member out=local.member status=n; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or perhaps use the SELECT statement with the INLIB= and OUTLIB= options?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc download inlib=remote outlib=local status=n;
  select member1 member2;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You might also want to look at the INHERITLIB= option on the SIGNON command.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/connref/p0brzkmxqg483hn163ek01h4mf6e.htm" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/connref/p0brzkmxqg483hn163ek01h4mf6e.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 18:08:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Use-Sas-libname-on-Server-Remote/m-p/827180#M326730</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-08-04T18:08:15Z</dc:date>
    </item>
  </channel>
</rss>

