<?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: Moving data from one remote server to another remote server with different sas versions. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124906#M34328</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for showing me a different way to approach my issue.&amp;nbsp; I have a few questions if you don't mind.&amp;nbsp; &lt;/P&gt;&lt;P&gt;When I connect using this code&lt;/P&gt;&lt;P&gt;options netencryptalgorithm = tripledes ;&lt;/P&gt;&lt;P&gt;%let host=testhost.testhost ;&lt;/P&gt;&lt;P&gt;signon host.50001 user=?????? password=?????? ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What value from above to I use for the server value on the libname statement? Is it host?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 May 2013 15:19:16 GMT</pubDate>
    <dc:creator>jerry898969</dc:creator>
    <dc:date>2013-05-01T15:19:16Z</dc:date>
    <item>
      <title>Moving data from one remote server to another remote server with different sas versions.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124896#M34318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to move many data tables from different directories on a remote server to another remote server.&amp;nbsp; The first remote server is running sas 9.1.3 32-bit and i'm trying to move them to a sas 9.2 64-bit on a different remote server.&amp;nbsp; I want to make sure the tables are created with the 9.2 64-bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On remote server 1 I have directories 1968 through 1997.&amp;nbsp; So I need to copy the data from each directory from the first server to the second server.&amp;nbsp; I don't want to write individual libname statements for each year.&amp;nbsp; Can anyone tell me the best way to do this with a macro or loop?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm able to get the data down from the first remote server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Connect to 9.1.3 remote server.&lt;/P&gt;&lt;P&gt;rsubmit ;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %let type=prod ;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; libname &amp;amp;type. "~/tempdata/1968/"&amp;nbsp; compress=yes ;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc download inlib=&amp;amp;type. outlib=work ;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;endrsubmit ;&lt;/P&gt;&lt;P&gt;signoff ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Connect to 9.2 remote server.&lt;/P&gt;&lt;P&gt;rsubmit ;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %let type=test ;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; libname &amp;amp;type. "~/data/1968/"&amp;nbsp; compress=yes ;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc upload in=work out=&amp;amp;type ;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;endrsubmit ;&lt;/P&gt;&lt;P&gt;signoff ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 20:09:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124896#M34318</guid>
      <dc:creator>jerry898969</dc:creator>
      <dc:date>2013-04-29T20:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Moving data from one remote server to another remote server with different sas versions.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124897#M34319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get an error running the code below and I can't seem to find the reason.&amp;nbsp; &lt;/P&gt;&lt;P&gt;I'm uploading a table(Paths) that has a list of directories.&amp;nbsp; I have to concatnate that value to the libname below so I can have libnames to all my subdirectories.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE PATHS&lt;/P&gt;&lt;P&gt;path&lt;/P&gt;&lt;P&gt;------&lt;/P&gt;&lt;P&gt;/year/1910/&lt;/P&gt;&lt;P&gt;/year/1920/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Connected to remote server already ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rsubmit ;&lt;/P&gt;&lt;P&gt;proc upload data = work.paths out = work.paths ;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;run ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_ ;&lt;/P&gt;&lt;P&gt;set paths ;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;call symput('path'||trim(left(_n_)), trim(path) ) ;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;call symput('nrow', trim(left(_n_)) ) ;&lt;/P&gt;&lt;P&gt;run ; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_ ;&lt;/P&gt;&lt;P&gt;%do i=1 %to 1 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libname prod&amp;amp;&amp;amp;i "~/temp/test&amp;amp;&amp;amp;path&amp;amp;i" access=readonly ;&lt;/P&gt;&lt;P&gt;%end ;&lt;/P&gt;&lt;P&gt;run ;&lt;/P&gt;&lt;P&gt;endrsubmit ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the errors I get :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data _null_ ;&lt;/P&gt;&lt;P&gt;11&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %do i=1 %to 1 ;&lt;/P&gt;&lt;P&gt;ERROR: The %DO statement is not valid in open code.&lt;/P&gt;&lt;P&gt;12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libname prod&amp;amp;&amp;amp;i "~/temp/test&amp;amp;&amp;amp;path&amp;amp;i" access=readonly ;&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference I not resolved.&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference I not resolved.&lt;/P&gt;&lt;P&gt;ERROR: Libref in LIBNAME statement must be followed either by quoted string or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; engine name or semicolon; "&amp;amp;" found.&lt;/P&gt;&lt;P&gt;ERROR: Error in the LIBNAME statement.&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference I not resolved.&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference PATH not resolved.&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference I not resolved.&lt;/P&gt;&lt;P&gt;13&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %end ;&lt;/P&gt;&lt;P&gt;ERROR: The %END statement is not valid in open code.&lt;/P&gt;&lt;P&gt;14&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 15:38:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124897#M34319</guid>
      <dc:creator>jerry898969</dc:creator>
      <dc:date>2013-04-30T15:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Moving data from one remote server to another remote server with different sas versions.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124898#M34320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As it is mentioned in the log, it is not allowed to have macro code in open code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should replace the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_ ;&lt;/P&gt;&lt;P&gt;%do i=1 %to 1 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libname prod&amp;amp;&amp;amp;i "~/temp/test&amp;amp;&amp;amp;path&amp;amp;i" access=readonly ;&lt;/P&gt;&lt;P&gt;%end ;&lt;/P&gt;&lt;P&gt;run ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro createLibname;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %do i=1 %to 1 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libname prod&amp;amp;&amp;amp;i "~/temp/test&amp;amp;&amp;amp;path&amp;amp;i" access=readonly;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %end ;&lt;/P&gt;&lt;P&gt;%mend createLibname;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%createLibname;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kr,&lt;/P&gt;&lt;P&gt;Florent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 17:09:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124898#M34320</guid>
      <dc:creator>Florent</dc:creator>
      <dc:date>2013-04-30T17:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Moving data from one remote server to another remote server with different sas versions.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124899#M34321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Florent,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you that was it.&amp;nbsp; I looked at that code for so long I couldn't focus anymore. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 17:30:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124899#M34321</guid>
      <dc:creator>jerry898969</dc:creator>
      <dc:date>2013-04-30T17:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Moving data from one remote server to another remote server with different sas versions.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124900#M34322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Florent,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm still having an issue I need some help with.&amp;nbsp; Here is the code i'm running and I keep getting errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data paths ;&lt;/P&gt;&lt;P&gt;length path $30 ;&lt;/P&gt;&lt;P&gt;input @1 path $30. ;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;/year/1997/&lt;/P&gt;&lt;P&gt;/year/1998/&lt;/P&gt;&lt;P&gt;/year/1999/&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options netencryptalgorithm = tripledes ;&lt;/P&gt;&lt;P&gt;%let host=testhost.testhost ;&lt;/P&gt;&lt;P&gt;signon host.50001 user=?????? password=?????? ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro paths ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;rsubmit ;&lt;/P&gt;&lt;P&gt;proc upload data = work.paths out = work.paths ;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;run ;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_ ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set paths ;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; call symput('path'||trim(left(_n_)), trim(path)) ;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; call symput('nvar', trim(left(_n_))) ;&lt;/P&gt;&lt;P&gt;run ; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%do i=1 %to 3 ;&lt;/P&gt;&lt;P&gt;libname prod&amp;amp;&amp;amp;i "~/temp/test&amp;amp;&amp;amp;path&amp;amp;i" access=readonly ;&lt;/P&gt;&lt;P&gt;%end ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endrsubmit ;&lt;/P&gt;&lt;P&gt;%mend paths ;&lt;/P&gt;&lt;P&gt;%paths ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;signoff ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gives me these errors:&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference I not resolved.&lt;/P&gt;&lt;P&gt;8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libname prod&amp;amp;&amp;amp;i "~/dc/data_test&amp;amp;&amp;amp;path&amp;amp;i" access=readonly ;&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference I not resolved.&lt;/P&gt;&lt;P&gt;ERROR: Libref in LIBNAME statement must be followed either by quoted string or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; engine name or semicolon; "&amp;amp;" found.&lt;/P&gt;&lt;P&gt;ERROR: Error in the LIBNAME statement.&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference I not resolved.&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference PATH not resolved.&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference I not resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any help you can give me.&amp;nbsp; I have to complete this project today and I keep hitting a wall. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 12:55:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124900#M34322</guid>
      <dc:creator>jerry898969</dc:creator>
      <dc:date>2013-05-01T12:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Moving data from one remote server to another remote server with different sas versions.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124901#M34323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why are you using a macro?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;rsubmit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;proc upload data = work.paths out = work.paths ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; set paths;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; libref=cats('path',_n_);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; rc=libname(libref,path);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; put (rc libref path) (=);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;endrsubmit;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 13:01:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124901#M34323</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-05-01T13:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: Moving data from one remote server to another remote server with different sas versions.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124902#M34324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for your reply.&amp;nbsp; The reason I was using a macro was because was to have it loop through and create all my libnames then I have to take all the data from that libname and copy it to my local sas and then taking it from my local sas to a completely different remote server.&amp;nbsp; I thought it would be cleaner with a macro.&amp;nbsp;&amp;nbsp; Thank you for your code I will try and accomplish the same thing using your code.&amp;nbsp; It looks so much cleaner as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 13:11:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124902#M34324</guid>
      <dc:creator>jerry898969</dc:creator>
      <dc:date>2013-05-01T13:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Moving data from one remote server to another remote server with different sas versions.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124903#M34325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you do need to loop then the only macro variable you will need is the upper bound.&amp;nbsp; To create a macro variable NPATHS with then number of observations in the PATHS dataset you could modify the data _null_ as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;rsubmit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;proc upload data = work.paths out = work.paths ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;run ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; if eof then call symputx('npaths',_n_-1);&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp; set paths &lt;STRONG&gt;end=eof&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp; libref=cats('path',_n_);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp; rc=libname(libref,path);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp; put (rc libref path) (=);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;endrsubmit;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 13:52:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124903#M34325</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-05-01T13:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Moving data from one remote server to another remote server with different sas versions.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124904#M34326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks for the reply.&amp;nbsp; I still have to be able to loop through the different libnames to pull all the data tables and download them to my local work folder.&lt;/P&gt;&lt;P&gt;I have to use a loop to connect to remote server 1 and create the first libname then download the data from that libname to my local work.&amp;nbsp; From there I need to signoff of remote server 1 and connect to remote server 2 which will use the same path and have the data uploaded to that directory on that server.&lt;/P&gt;&lt;P&gt;So the the i variable in my do loop is used to identify which libname to copy from and which one to upload too.&amp;nbsp;&amp;nbsp; I hope I explained this clearly if not please let me know.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop through the number of paths 1-n.&amp;nbsp; Below is the steps i'm trying to take&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do loop i = 1 - n&lt;/P&gt;&lt;P&gt;connect remote server 1&lt;/P&gt;&lt;P&gt;create libname prod&amp;amp;i "~/temp/test&amp;amp;&amp;amp;paths&amp;amp;i" access = readonly ;&lt;/P&gt;&lt;P&gt;download data from libname prod&amp;amp;i to my local work folder&lt;/P&gt;&lt;P&gt;signoff remote server 1&lt;/P&gt;&lt;P&gt;connect remote server 2&lt;/P&gt;&lt;P&gt;create libname prod&amp;amp;i "~/temp/test&amp;amp;&amp;amp;paths&amp;amp;i" access = readonly ;&lt;/P&gt;&lt;P&gt;upload data within my local work to the directory on remote server 2&lt;/P&gt;&lt;P&gt;signoff remote server 2&lt;/P&gt;&lt;P&gt;end loop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for you help and patience.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 14:50:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124904#M34326</guid>
      <dc:creator>jerry898969</dc:creator>
      <dc:date>2013-05-01T14:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Moving data from one remote server to another remote server with different sas versions.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124905#M34327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not reframe the solution so that it does not involve any remote submitted code?&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Connect to server1&lt;/LI&gt;&lt;LI&gt;Connect to server2&lt;/LI&gt;&lt;LI&gt;Create two librefs for each path on local session using REMOTE engine to the two different server.&lt;/LI&gt;&lt;LI&gt;Copy from libref to libref.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could put the loop around steps 1 to 4, 3 and 4 or just loop within step 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;connect server1;&lt;/P&gt;&lt;P&gt;connect server2;&lt;/P&gt;&lt;P&gt;libname from1 remote 'path1' server=server1;&lt;/P&gt;&lt;P&gt;libname to1 remote 'path1' server=server2;&lt;/P&gt;&lt;P&gt;proc copy inlib=from1 outlib=to1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 15:05:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124905#M34327</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-05-01T15:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Moving data from one remote server to another remote server with different sas versions.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124906#M34328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for showing me a different way to approach my issue.&amp;nbsp; I have a few questions if you don't mind.&amp;nbsp; &lt;/P&gt;&lt;P&gt;When I connect using this code&lt;/P&gt;&lt;P&gt;options netencryptalgorithm = tripledes ;&lt;/P&gt;&lt;P&gt;%let host=testhost.testhost ;&lt;/P&gt;&lt;P&gt;signon host.50001 user=?????? password=?????? ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What value from above to I use for the server value on the libname statement? Is it host?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 15:19:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124906#M34328</guid>
      <dc:creator>jerry898969</dc:creator>
      <dc:date>2013-05-01T15:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Moving data from one remote server to another remote server with different sas versions.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124907#M34329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Should be HOST. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Try this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%let host1=testhost.testhost ;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%let host2=testhost.testhost ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;signon host1.50001 user=?????? password=?????? ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;signon host2.50001 user=?????? password=?????? ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;libname from1 remote 'path1' server=host1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;libname to1 remote 'path2' server=host2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 15:26:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124907#M34329</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-05-01T15:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Moving data from one remote server to another remote server with different sas versions.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124908#M34330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to do the connect parts but when I run this libname statement I get this error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let host1=Server1 ;&lt;/P&gt;&lt;P&gt;%let host2=Server2 ;&lt;/P&gt;&lt;P&gt;signon host1.50001 user=????? password=?????&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;signon host2.50001 user=????? password=?????&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;libname from1 remote '~/temp/test/year/1997/' server=host1 ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: Attempt to connect to server HOST1 failed.&lt;/P&gt;&lt;P&gt;ERROR: A communication subsystem partner link setup request failure has occurred.&lt;/P&gt;&lt;P&gt;ERROR: Cannot find TCP service 'host1'.&lt;/P&gt;&lt;P&gt;ERROR: Error in the LIBNAME statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 15:44:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124908#M34330</guid>
      <dc:creator>jerry898969</dc:creator>
      <dc:date>2013-05-01T15:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Moving data from one remote server to another remote server with different sas versions.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124909#M34331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have never needed to specify the port number when using SAS/Connect.&amp;nbsp; (the .5001 suffix on the hostname alias in your example).&amp;nbsp; &lt;/P&gt;&lt;P&gt;Try the SIGNON command without it.&lt;/P&gt;&lt;P&gt;If you find that you need the port number then the documentation for SAS 9.3 says you need to use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt;server=host1._ _5001&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the LIBNAME statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 16:20:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124909#M34331</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-05-01T16:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Moving data from one remote server to another remote server with different sas versions.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124910#M34332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason for the port number is there are 2 different versions of SAS that are running.&amp;nbsp; 9.1.3 on one of the servers and 9.2 on the other.&amp;nbsp; &lt;/P&gt;&lt;P&gt;I tried what you listed for 9.3 and it gave me the same error.&amp;nbsp;&amp;nbsp; Should I go back to doing this by connectiong to one server copy the data down and then disconnect then connect to server 2 and then upload?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think i'm making this much more difficult that it should be and I do apologize.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 16:27:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124910#M34332</guid>
      <dc:creator>jerry898969</dc:creator>
      <dc:date>2013-05-01T16:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Moving data from one remote server to another remote server with different sas versions.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124911#M34333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can open a ticket with SAS Support to figure out how to get REMOTE libname engine to work right for your connections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/ctx/supportform/createForm" title="http://support.sas.com/ctx/supportform/createForm"&gt;Technical Support Form&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 16:34:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124911#M34333</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-05-01T16:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Moving data from one remote server to another remote server with different sas versions.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124912#M34334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When looking at your errors (see below), it looks obvious to me that you did not declare the macro variables Path1, Path2 and Path3. Because of that, you get the warning on symbolic reference PATH not resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference I not resolved.&lt;/P&gt;&lt;P&gt;8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libname prod&amp;amp;&amp;amp;i "~/dc/data_test&amp;amp;&amp;amp;path&amp;amp;i" access=readonly ;&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference I not resolved.&lt;/P&gt;&lt;P&gt;ERROR: Libref in LIBNAME statement must be followed either by quoted string or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; engine name or semicolon; "&amp;amp;" found.&lt;/P&gt;&lt;P&gt;ERROR: Error in the LIBNAME statement.&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference I not resolved.&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference PATH not resolved.&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference I not resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, the definition of the libname should rather look as follows (without a double ampersand in the name of the libname):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname &lt;STRONG&gt;prod&amp;amp;i&lt;/STRONG&gt; "~/temp/test&amp;amp;&amp;amp;path&amp;amp;i" access=readonly ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 12:14:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124912#M34334</guid>
      <dc:creator>Florent</dc:creator>
      <dc:date>2013-05-02T12:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Moving data from one remote server to another remote server with different sas versions.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124913#M34335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The other syntax in the help file is to put the port number into the macro variable, then you can reference it as a single level name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%let host1=Server1 50001 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;signon host1 user=????? password=?????&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;libname from1 remote '~/temp/test/year/1997/' server=host1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 13:06:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124913#M34335</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-05-02T13:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Moving data from one remote server to another remote server with different sas versions.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124914#M34336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are still having trouble because of the interaction of the macro execution and the remote submission.&lt;/P&gt;&lt;P&gt;You are running the macro on your local session so the variable I is defined in the local session.&amp;nbsp; One way to fix that is to copy it to the remote session using %SYSLPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%macro xx;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;rsubmit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%do i=1 %to 1 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; %syslput i=&amp;amp;i ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; libname path&amp;amp;i '.';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;endrsubmit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%mend xx;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%xx;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way is to define and execute the macro on the remote session.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;rsubmit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%macro xx;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; %do i=1 %to 1 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; libname path&amp;amp;i '.';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; %end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%mend xx;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%xx;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;endrsubmit;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 13:16:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124914#M34336</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-05-02T13:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Moving data from one remote server to another remote server with different sas versions.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124915#M34337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just went though this exercise on remote linux servers and found the easiest and fastest way was to ftp the data and then run proc migrate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 13:19:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Moving-data-from-one-remote-server-to-another-remote-server-with/m-p/124915#M34337</guid>
      <dc:creator>MarkW</dc:creator>
      <dc:date>2013-05-02T13:19:30Z</dc:date>
    </item>
  </channel>
</rss>

