<?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: Assign different files into one libname with different location? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Assign-different-files-into-one-libname-with-different-location/m-p/477060#M71259</link>
    <description>&lt;P&gt;You can refer to these table if their table name is unique.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname RDB ( "Pathway\data\lab" "Pathway\data\surv" "Pathway\data\vax" );

data x;
 set RDB.SURV10;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 11 Jul 2018 13:03:29 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2018-07-11T13:03:29Z</dc:date>
    <item>
      <title>Assign different files into one libname with different location?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Assign-different-files-into-one-libname-with-different-location/m-p/476872#M71244</link>
      <description>&lt;P&gt;Hi all:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have codes below.&amp;nbsp; I would like to assign Surv10 in&amp;nbsp;SURV folder, Pneulab in&amp;nbsp;LAB folder and Vax10 in&amp;nbsp;VAX folder into one new folder RDB.&amp;nbsp;&amp;nbsp; I am curious if there is a better way to do it.&amp;nbsp; Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname RDBlab "Pathway\data\lab";
libname RDBsurv "Pathway\data\surv";
libname RDBvax "Pathway\data\vax";
libname RDB "Pathway\data";

data RDB.SURV10; set RDBsurv.SURV10; run;
data RDB.PNEULAB; set RDBlab.PNEULAB; run;
data RDB.VAX10; set RDBvax.VAX10; run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Jul 2018 17:08:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Assign-different-files-into-one-libname-with-different-location/m-p/476872#M71244</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2018-07-10T17:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Assign different files into one libname with different location?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Assign-different-files-into-one-libname-with-different-location/m-p/476874#M71245</link>
      <description>PROC DATASETS or PROC COPY.</description>
      <pubDate>Tue, 10 Jul 2018 17:22:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Assign-different-files-into-one-libname-with-different-location/m-p/476874#M71245</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-07-10T17:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Assign different files into one libname with different location?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Assign-different-files-into-one-libname-with-different-location/m-p/477060#M71259</link>
      <description>&lt;P&gt;You can refer to these table if their table name is unique.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname RDB ( "Pathway\data\lab" "Pathway\data\surv" "Pathway\data\vax" );

data x;
 set RDB.SURV10;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Jul 2018 13:03:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Assign-different-files-into-one-libname-with-different-location/m-p/477060#M71259</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-07-11T13:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Assign different files into one libname with different location?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Assign-different-files-into-one-libname-with-different-location/m-p/477092#M71265</link>
      <description>&lt;P&gt;Hi Reeza:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used PROC COPY, but really didn't see any simpler than mines.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc copy out=RDB in=RDBlab memtype=data;
	select PNEULAB;
run;

proc copy out=RDB in=RDBsurv memtype=data;
	select SURV10;
run;

proc copy out=RDB in=RDBvax memtype=data;
	select VAX10;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Jul 2018 14:14:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Assign-different-files-into-one-libname-with-different-location/m-p/477092#M71265</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2018-07-11T14:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Assign different files into one libname with different location?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Assign-different-files-into-one-libname-with-different-location/m-p/477093#M71266</link>
      <description>&lt;P&gt;Thanks, Kshap.&amp;nbsp; That's awesome! &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 14:15:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Assign-different-files-into-one-libname-with-different-location/m-p/477093#M71266</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2018-07-11T14:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Assign different files into one libname with different location?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Assign-different-files-into-one-libname-with-different-location/m-p/477110#M71269</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/67134"&gt;@ybz12003&lt;/a&gt;&amp;nbsp;when you use a data step SAS copies the data line by line, in case you have any calculations/manipulations.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, when you use PROC COPY, it copies the data over in blocks instead of a line at a time. For a large data set this has significant time savings, but for smaller tables you may not see an improvement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't think this is any simpler but it seems a bit more clean to me.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc datasets lib=work;
copy in=sashelp out=work; *from sashelp to work;
select class;
copy in=sasuser out=work; *from sasuser to work;
select funcs;
run;quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Jul 2018 14:51:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Assign-different-files-into-one-libname-with-different-location/m-p/477110#M71269</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-07-11T14:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Assign different files into one libname with different location?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Assign-different-files-into-one-libname-with-different-location/m-p/477117#M71270</link>
      <description>&lt;P&gt;Oh, I don't know that.&amp;nbsp; Thanks for the clarification.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 15:07:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Assign-different-files-into-one-libname-with-different-location/m-p/477117#M71270</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2018-07-11T15:07:43Z</dc:date>
    </item>
  </channel>
</rss>

