<?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 Saving workspace like R in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Saving-workspace-like-R/m-p/38935#M2732</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I am a new user in SAS. I have shifted from R. I am dealing with a large data (hospitalization).&lt;/P&gt;&lt;P&gt;Everyday I open SAS, I loose a&amp;nbsp; lot of time to run all the previous codes to get the formatted and structured data for further use.&lt;/P&gt;&lt;P&gt;In R I used to save workspace and thus everyday when I start I could get back the latest works of previous day.&lt;/P&gt;&lt;P&gt;Is it possible here with SAS to save workspace given that I have SAS Base and Enterpirse Guide?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dipanjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Mar 2012 12:20:27 GMT</pubDate>
    <dc:creator>Dipanjan</dc:creator>
    <dc:date>2012-03-21T12:20:27Z</dc:date>
    <item>
      <title>Saving workspace like R</title>
      <link>https://communities.sas.com/t5/Developers/Saving-workspace-like-R/m-p/38935#M2732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I am a new user in SAS. I have shifted from R. I am dealing with a large data (hospitalization).&lt;/P&gt;&lt;P&gt;Everyday I open SAS, I loose a&amp;nbsp; lot of time to run all the previous codes to get the formatted and structured data for further use.&lt;/P&gt;&lt;P&gt;In R I used to save workspace and thus everyday when I start I could get back the latest works of previous day.&lt;/P&gt;&lt;P&gt;Is it possible here with SAS to save workspace given that I have SAS Base and Enterpirse Guide?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dipanjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 12:20:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Saving-workspace-like-R/m-p/38935#M2732</guid>
      <dc:creator>Dipanjan</dc:creator>
      <dc:date>2012-03-21T12:20:27Z</dc:date>
    </item>
    <item>
      <title>Saving workspace like R</title>
      <link>https://communities.sas.com/t5/Developers/Saving-workspace-like-R/m-p/38936#M2733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you save your files in a permanent directory (e.g., use a libname statement to define a library like:&lt;/P&gt;&lt;P&gt;&amp;nbsp; libname mydata "c:\current_data";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then, in your code, rather than just creating the files in your work directory (i.e., using something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data step1;&lt;/P&gt;&lt;P&gt; *whatever;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create them as permanent files.&amp;nbsp; e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data mydata.step1;&lt;/P&gt;&lt;P&gt; *whatever;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, the next day, you just have to run the one line:&amp;nbsp; libname mydata "c:\current_data";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and all of your files will be accessible&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 13:19:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Saving-workspace-like-R/m-p/38936#M2733</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-03-21T13:19:50Z</dc:date>
    </item>
    <item>
      <title>Saving workspace like R</title>
      <link>https://communities.sas.com/t5/Developers/Saving-workspace-like-R/m-p/38937#M2734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dinpanjan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAS supports a neat trick that lets you save the WORK area with minimal changes to your SAS program.&amp;nbsp; These changes have to be implemented at the beginning of your program, before adding to the WORK area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Art mentioned, you have to pre-define a folder where the WORK area will reside, using a LIBNAME statement.&amp;nbsp; From that point, however, you don't need to change the subsequent DATA and PROC steps.&amp;nbsp; Instead, add this line to the program (assuming the LIBNAME statement defined "mydata"):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options user=mydata;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The default option is user=WORK.&amp;nbsp; That's why your one-level data set names get stored in the WORK library.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the part I'm not sure about.&amp;nbsp; If you want to re-use the same WORK area in a subsequent program, is it as simple as adding the same two lines to the subsequent program?&amp;nbsp; I suspect it is, but I'm not positive about that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, Art's method will give you better control if you wish to save just part of the WORK area and discard the rest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 13:56:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Saving-workspace-like-R/m-p/38937#M2734</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2012-03-21T13:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Saving workspace like R</title>
      <link>https://communities.sas.com/t5/Developers/Saving-workspace-like-R/m-p/38938#M2735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Art297 &amp;amp; Astounding. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have applied method of Art297. While reopening, it was not throwing the data and may be that was because of more complication of the program.e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data work.a;&lt;/P&gt;&lt;P&gt;set permanent.b;&lt;/P&gt;&lt;P&gt;/*subsetting*/&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data permanent.final;&lt;/P&gt;&lt;P&gt;set work.a;&lt;/P&gt;&lt;P&gt;/* formatting, restructuring, reformating, count */&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So can anybody help me to understand why I cannot retrieve my saved data in permanent library, even though I gave the path for the libref next day ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Astounding,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you were suspicious I tried. It works even when model output is needed to retrieve but in my purpose regarding several times formatting, restructuring, SQL joins etc, it is not working. So till now what way I have is to export all to csv at the end of the day and import on the next day. U know it causes loss of information that are capable with SAS data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 05:59:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Saving-workspace-like-R/m-p/38938#M2735</guid>
      <dc:creator>Dipanjan</dc:creator>
      <dc:date>2012-03-22T05:59:53Z</dc:date>
    </item>
    <item>
      <title>Saving workspace like R</title>
      <link>https://communities.sas.com/t5/Developers/Saving-workspace-like-R/m-p/38939#M2736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This &lt;A href="http://blogs.sas.com/content/bi/2012/03/16/create_views_in_enterpriseguide/"&gt;post &lt;/A&gt;from Angela Hall might help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 21:13:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Saving-workspace-like-R/m-p/38939#M2736</guid>
      <dc:creator>Tobin_Scroggins</dc:creator>
      <dc:date>2012-03-22T21:13:43Z</dc:date>
    </item>
  </channel>
</rss>

