<?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: Specifying all data sets within a session in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Specifying-all-data-sets-within-a-session/m-p/36152#M7110</link>
    <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
It is possible to create a list of tables from the work library:&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc SQL noprint;&lt;BR /&gt;
  select memname into :tablst separated by " "&lt;BR /&gt;
  from sashelp.vmember &lt;BR /&gt;
  where libname="WORK"&lt;BR /&gt;
;quit;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
and then use it in proc COPY:&lt;BR /&gt;
[pre]&lt;BR /&gt;
select &amp;amp;tablst;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
SPR</description>
    <pubDate>Thu, 18 Nov 2010 17:30:15 GMT</pubDate>
    <dc:creator>SPR</dc:creator>
    <dc:date>2010-11-18T17:30:15Z</dc:date>
    <item>
      <title>Specifying all data sets within a session</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Specifying-all-data-sets-within-a-session/m-p/36151#M7109</link>
      <description>My server is being rebooted shortly.&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to dump all of the data sets from the server work directory onto my pc so I can upload them again when the servers back online.&lt;BR /&gt;
&lt;BR /&gt;
The code I'm trying to run is as follows;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
RSUBMIT ;&lt;BR /&gt;
&lt;BR /&gt;
LIBNAME drive 'C:\temp\sessiondump';&lt;BR /&gt;
&lt;BR /&gt;
PROC COPY IN=SASCATCA OUT=drive ;&lt;BR /&gt;
SELECT _ALL_ ;&lt;BR /&gt;
RUN ;&lt;BR /&gt;
&lt;BR /&gt;
ENDRSUBMIT ;&lt;BR /&gt;
&lt;/PRE&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
This code works if I individually list all of the datasets in the SELECT statement.&lt;BR /&gt;
&lt;BR /&gt;
As the session has a few hundered data sets, I'm wanting to specify the entire contents using a single reference.&lt;BR /&gt;
&lt;BR /&gt;
My first thought was _ALL_ but this isn't working.&lt;BR /&gt;
&lt;BR /&gt;
Any ideas?&lt;BR /&gt;
&lt;BR /&gt;
Any help with this would be appreciated.&lt;BR /&gt;
&lt;BR /&gt;
Cheers,&lt;BR /&gt;
&lt;BR /&gt;
Fat Captain.</description>
      <pubDate>Thu, 18 Nov 2010 16:59:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Specifying-all-data-sets-within-a-session/m-p/36151#M7109</guid>
      <dc:creator>FatCaptain</dc:creator>
      <dc:date>2010-11-18T16:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying all data sets within a session</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Specifying-all-data-sets-within-a-session/m-p/36152#M7110</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
It is possible to create a list of tables from the work library:&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc SQL noprint;&lt;BR /&gt;
  select memname into :tablst separated by " "&lt;BR /&gt;
  from sashelp.vmember &lt;BR /&gt;
  where libname="WORK"&lt;BR /&gt;
;quit;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
and then use it in proc COPY:&lt;BR /&gt;
[pre]&lt;BR /&gt;
select &amp;amp;tablst;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
SPR</description>
      <pubDate>Thu, 18 Nov 2010 17:30:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Specifying-all-data-sets-within-a-session/m-p/36152#M7110</guid>
      <dc:creator>SPR</dc:creator>
      <dc:date>2010-11-18T17:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying all data sets within a session</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Specifying-all-data-sets-within-a-session/m-p/36153#M7111</link>
      <description>If you do not use the SELECT statement the default is everything of the given memtype.</description>
      <pubDate>Thu, 18 Nov 2010 18:53:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Specifying-all-data-sets-within-a-session/m-p/36153#M7111</guid>
      <dc:creator>ArtC</dc:creator>
      <dc:date>2010-11-18T18:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying all data sets within a session</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Specifying-all-data-sets-within-a-session/m-p/36154#M7112</link>
      <description>Hi. Art Carpenter is right. Remember SAS syntax is very flexible.&lt;BR /&gt;
To incorporate Arc's view,you can use modify input or list input ,Such as&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
&lt;BR /&gt;
select a: b:  art1-art100;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
a: stand for any name of data set which start with alphabetical ' a ';&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Fri, 19 Nov 2010 03:20:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Specifying-all-data-sets-within-a-session/m-p/36154#M7112</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2010-11-19T03:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying all data sets within a session</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Specifying-all-data-sets-within-a-session/m-p/36155#M7113</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
You could also create a remote library pointing the WORK library of your server, and then use the datasets procedure in order to move all datasets from that remote library to a local library.&lt;BR /&gt;
&lt;BR /&gt;
Code is to be executed on the local session (outside of the RSUBMIT/ENDRSUBMIT) and before signing off your connection with the server.&lt;BR /&gt;
&lt;BR /&gt;
libname rwork server=&lt;NAMEOFYOURSERVERCONNECTION&gt; slibref=work;&lt;BR /&gt;
&lt;BR /&gt;
proc datasets nolist;&lt;BR /&gt;
copy in=rwork out=work;&lt;BR /&gt;
quit;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
I hope it helps.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Florent&lt;/NAMEOFYOURSERVERCONNECTION&gt;</description>
      <pubDate>Fri, 19 Nov 2010 11:51:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Specifying-all-data-sets-within-a-session/m-p/36155#M7113</guid>
      <dc:creator>Florent</dc:creator>
      <dc:date>2010-11-19T11:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying all data sets within a session</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Specifying-all-data-sets-within-a-session/m-p/36156#M7114</link>
      <description>Thank you all for your help.&lt;BR /&gt;
&lt;BR /&gt;
You've got to love SAS for the flexability it offers.&lt;BR /&gt;
&lt;BR /&gt;
Cheers,&lt;BR /&gt;
&lt;BR /&gt;
Fat Captain.</description>
      <pubDate>Fri, 19 Nov 2010 14:46:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Specifying-all-data-sets-within-a-session/m-p/36156#M7114</guid>
      <dc:creator>FatCaptain</dc:creator>
      <dc:date>2010-11-19T14:46:33Z</dc:date>
    </item>
  </channel>
</rss>

