<?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: Copy or move a table between libraries in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Copy-or-move-a-table-between-libraries/m-p/115482#M31940</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't need librefs for libraries. Put the library names directly into proc copy or datasets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;PROC datasets library=work nodetails nolist;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;COPY IN=QOC12 OUT=POC12;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SELECT AVG_DIFFS_FROM_TARGETS;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;RUN; QUIT;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Apr 2015 16:38:04 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2015-04-21T16:38:04Z</dc:date>
    <item>
      <title>Copy or move a table between libraries</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Copy-or-move-a-table-between-libraries/m-p/115472#M31930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I need to know how to move a table in a library in a server to another library in another server.&lt;/P&gt;&lt;P&gt;I have a table in the library Work in the server SASMain and I need to copy or move it to the library Work but in another server named PSASD01. How could I do that?&lt;/P&gt;&lt;P&gt;I was looking for a possible answer but I found this kind of code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIBNAME lib1 'SAS-data-library';&lt;/P&gt;&lt;P&gt;LIBNAME lib2 'SAS-data-library';&lt;/P&gt;&lt;P&gt;PROC DATASETS;&lt;/P&gt;&lt;P&gt;COPY IN=lib1 OUT=lib2 MOVE;&lt;/P&gt;&lt;P&gt;SELECT member1 member2;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where 'SAS-data-library' is replaced by a path in the pc as 'C:\temp', but in my case is not a path in my computer but it's a libray in a server. Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 21:21:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Copy-or-move-a-table-between-libraries/m-p/115472#M31930</guid>
      <dc:creator>fri0</dc:creator>
      <dc:date>2013-10-17T21:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Copy or move a table between libraries</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Copy-or-move-a-table-between-libraries/m-p/115473#M31931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you access that in windows explorer?&amp;nbsp; IE, I might have a NAS store in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//mycompanysnas/sasfiles/myfolder/projectname/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that I could just open in Windows Explorer.&amp;nbsp; If I can do that (on the machine running SAS, whether that's your local server/installation or you have a windows or whatever server running SAS that you use EG to connect to), then you can just write the libname that way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname servlib "//mycompanysnas/sasfiles/myfolder/projectname/";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can use it as a normal library - proc copy to your heart's content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can't access it directly, you'll want to provide more information - are you running this locally or on a SAS Server; does this other server also have a SAS server running; are you using SAS CONNECT, Enterprise Guide, etc.?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 21:27:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Copy-or-move-a-table-between-libraries/m-p/115473#M31931</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2013-10-17T21:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Copy or move a table between libraries</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Copy-or-move-a-table-between-libraries/m-p/115474#M31932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've asked for the path of the servers.&lt;/P&gt;&lt;P&gt;Just in case, I'm running on a SAS Server that is the same that SASMain. I use Enterprise Guide.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 21:51:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Copy-or-move-a-table-between-libraries/m-p/115474#M31932</guid>
      <dc:creator>fri0</dc:creator>
      <dc:date>2013-10-17T21:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Copy or move a table between libraries</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Copy-or-move-a-table-between-libraries/m-p/115475#M31933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you access SAS Foundation or Base SAS? It's easier there....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 22:25:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Copy-or-move-a-table-between-libraries/m-p/115475#M31933</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-10-17T22:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Copy or move a table between libraries</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Copy-or-move-a-table-between-libraries/m-p/115476#M31934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reeza, in the lower part, I suppose is the status bar or something like that appears: "&lt;PRE&gt;, connected to PAMLP01:8561/Foundation". Also, when you check the SASMain properties, PALMP01 appears as the host name (SASMain is the server from where I want to copy the table).&lt;/PRE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 13:58:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Copy-or-move-a-table-between-libraries/m-p/115476#M31934</guid>
      <dc:creator>fri0</dc:creator>
      <dc:date>2013-10-18T13:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: Copy or move a table between libraries</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Copy-or-move-a-table-between-libraries/m-p/115477#M31935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using SAS Enterprise Guide, you can use Data-&amp;gt;Download SAS Data Sets and then Data-&amp;gt;Upload SAS Data Sets to copy the data from your source library to your PC, then from your PC to your target library.&amp;nbsp; That is two hops, but the file transfer is pretty fast as long as you have a good network connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 14:01:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Copy-or-move-a-table-between-libraries/m-p/115477#M31935</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2013-10-18T14:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Copy or move a table between libraries</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Copy-or-move-a-table-between-libraries/m-p/115478#M31936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Copying data between servers, and especially to a specific work-library, doesn't sound like a best practice.&lt;/P&gt;&lt;P&gt;If this is one time shot, just copy in a windows explorer, or whatever tool that is available to you.&lt;/P&gt;&lt;P&gt;What will you do with the table in the other work? Are you using EG in both these servers? Can't get the full picture here...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 14:05:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Copy-or-move-a-table-between-libraries/m-p/115478#M31936</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-10-18T14:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Copy or move a table between libraries</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Copy-or-move-a-table-between-libraries/m-p/115479#M31937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;am trying to move tables from one libarary to another library in SAS 9.2 (solaris 5.10)&lt;/P&gt;&lt;P&gt;How can i do that,please can you give the steps&lt;/P&gt;&lt;P&gt;I would really appreciate for all your help&lt;/P&gt;&lt;P&gt;&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>Tue, 21 Apr 2015 14:32:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Copy-or-move-a-table-between-libraries/m-p/115479#M31937</guid>
      <dc:creator>sasprofile</dc:creator>
      <dc:date>2015-04-21T14:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Copy or move a table between libraries</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Copy-or-move-a-table-between-libraries/m-p/115480#M31938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If both of your SAS libraries are on the same SAS session, you can use PROC COPY or &lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a000247654.htm"&gt;PROC DATASETS with the COPY statement&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 14:54:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Copy-or-move-a-table-between-libraries/m-p/115480#M31938</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2015-04-21T14:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Copy or move a table between libraries</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Copy-or-move-a-table-between-libraries/m-p/115481#M31939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;both are in same sas session i tried this but its not moving any tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here QOC11 and POC12 are my two libaries&lt;BR /&gt;and qoc and tlib12 are librefs&lt;/P&gt;&lt;P&gt;I tried to move one table AVG_DIFFS_FROM_TARGETS shown below &lt;/P&gt;&lt;P&gt;LIBNAME qoc 'QOC11';&lt;/P&gt;&lt;P&gt;LIBNAME tlib12 'POC12';&lt;/P&gt;&lt;P&gt;PROC COPY;&lt;/P&gt;&lt;P&gt;COPY IN=qoc OUT=tlib12 MOVE;&lt;/P&gt;&lt;P&gt;SELECT AVG_DIFFS_FROM_TARGETS;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 15:39:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Copy-or-move-a-table-between-libraries/m-p/115481#M31939</guid>
      <dc:creator>sasprofile</dc:creator>
      <dc:date>2015-04-21T15:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Copy or move a table between libraries</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Copy-or-move-a-table-between-libraries/m-p/115482#M31940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't need librefs for libraries. Put the library names directly into proc copy or datasets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;PROC datasets library=work nodetails nolist;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;COPY IN=QOC12 OUT=POC12;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SELECT AVG_DIFFS_FROM_TARGETS;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;RUN; QUIT;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 16:38:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Copy-or-move-a-table-between-libraries/m-p/115482#M31940</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-04-21T16:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Copy or move a table between libraries</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Copy-or-move-a-table-between-libraries/m-p/115483#M31941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reeza,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks alot for your prompt reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got below error when i ran the above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COPY IN=QOC12 OUT=Testlib;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; __&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 76&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;NOTE: Enter RUN; to continue or QUIT; to end the procedure.&lt;/P&gt;&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, ALTER, CLONE, CONSTRAINT, DATECOPY, FORCE, IN, INDD, INDEX, INLIB, &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; MEMTYPE, MOVE, MT, MTYPE, NOCLONE, OUT, OUTDD, OUTLIB, PROTECT, PW.&amp;nbsp; &lt;/P&gt;&lt;P&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 18:11:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Copy-or-move-a-table-between-libraries/m-p/115483#M31941</guid>
      <dc:creator>sasprofile</dc:creator>
      <dc:date>2015-04-21T18:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Copy or move a table between libraries</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Copy-or-move-a-table-between-libraries/m-p/115484#M31942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your proc copy is incorrect, the in/out are on the same line as proc copy. Or use proc datasets.&lt;/P&gt;&lt;P&gt;Both of the ones below work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, in the future please ask a new question rather than post in a question that is 2 years old.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname test '/folders/myfolders';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc copy library=work;&lt;/P&gt;&lt;P&gt;copy out=test in=sashelp;&lt;/P&gt;&lt;P&gt;select class cars heart;&lt;/P&gt;&lt;P&gt;run;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc copy out=test in=sashelp;&lt;/P&gt;&lt;P&gt;select air;&lt;/P&gt;&lt;P&gt;run;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 22:49:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Copy-or-move-a-table-between-libraries/m-p/115484#M31942</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-04-21T22:49:43Z</dc:date>
    </item>
  </channel>
</rss>

