<?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: How to save a revised dataset on SAS server in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-save-a-revised-dataset-on-SAS-server/m-p/819825#M34782</link>
    <description>&lt;P&gt;Got it! Thank you for your help!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jun 2022 20:56:04 GMT</pubDate>
    <dc:creator>varatt90</dc:creator>
    <dc:date>2022-06-22T20:56:04Z</dc:date>
    <item>
      <title>How to save a revised dataset on SAS server</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-save-a-revised-dataset-on-SAS-server/m-p/819811#M34776</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using SAS studio.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the original dataset, I've created a new dataset with no missing variables. Instead of running the code each time to create that new dataset, is there a way I can save the new dataset onto the server? So the new dataset would be my new default.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 20:04:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-save-a-revised-dataset-on-SAS-server/m-p/819811#M34776</guid>
      <dc:creator>varatt90</dc:creator>
      <dc:date>2022-06-22T20:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to save a revised dataset on SAS server</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-save-a-revised-dataset-on-SAS-server/m-p/819813#M34777</link>
      <description>&lt;P&gt;What I do, import my raw data, call it raw.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then do a bunch of cleaning step. Save it to the server with a new name, ie 'proj4.data4analysis' I'm not that creative.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then all the following steps are built off the data4analysis dataset.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not replace the raw import data but do not save intermediary steps between the raw and data4analysis typically either. That could be reproduced by running the program if someone wants.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 20:18:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-save-a-revised-dataset-on-SAS-server/m-p/819813#M34777</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-06-22T20:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to save a revised dataset on SAS server</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-save-a-revised-dataset-on-SAS-server/m-p/819815#M34778</link>
      <description>&lt;P&gt;Thanks so much! What code do you use to save it as a new file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 20:27:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-save-a-revised-dataset-on-SAS-server/m-p/819815#M34778</guid>
      <dc:creator>varatt90</dc:creator>
      <dc:date>2022-06-22T20:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to save a revised dataset on SAS server</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-save-a-revised-dataset-on-SAS-server/m-p/819817#M34779</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;library proj4 '/home/fkhurshed/Demo1/Project4/data';

*import file;
proc import out=raw..... run;

data clean1;
set raw;
...
run;

data clean4;
set clean3;
....
run;

data proj4.data4analysis;
set clean4;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;See the last step.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You create the library where you want to save the project work first.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's usually how my process would work to some degree. To be honest, I'd actually usually separate out the import step as well into a separate program but that's when you get to really streamlining a process. I set it up as minimum 4 programs:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;data import&lt;/LI&gt;
&lt;LI&gt;data cleaning (creates data for analysis)&lt;/LI&gt;
&lt;LI&gt;analysis&lt;/LI&gt;
&lt;LI&gt;reporting/results creation&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Reason being, that sometimes data sources change over time. For example when I start a proof of concept it may be CSV files I work with and then when moving later on, it becomes a DB table that I'm working with instead so then I can just change it easily in a single program.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 20:38:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-save-a-revised-dataset-on-SAS-server/m-p/819817#M34779</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-06-22T20:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to save a revised dataset on SAS server</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-save-a-revised-dataset-on-SAS-server/m-p/819819#M34780</link>
      <description>&lt;P&gt;Thank you for sharing your code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see what you did there. Is there way to save the dataset proj4.data4analysis&amp;nbsp;without actually running proc import of the old data again and datasets clean 1 to 4?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 20:45:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-save-a-revised-dataset-on-SAS-server/m-p/819819#M34780</guid>
      <dc:creator>varatt90</dc:creator>
      <dc:date>2022-06-22T20:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to save a revised dataset on SAS server</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-save-a-revised-dataset-on-SAS-server/m-p/819823#M34781</link>
      <description>Assuming it's in work or somewhere you just run the last step. Then the remainder of your code must reference that saved data set, not the original imported data.</description>
      <pubDate>Wed, 22 Jun 2022 20:52:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-save-a-revised-dataset-on-SAS-server/m-p/819823#M34781</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-06-22T20:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to save a revised dataset on SAS server</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-save-a-revised-dataset-on-SAS-server/m-p/819825#M34782</link>
      <description>&lt;P&gt;Got it! Thank you for your help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 20:56:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-save-a-revised-dataset-on-SAS-server/m-p/819825#M34782</guid>
      <dc:creator>varatt90</dc:creator>
      <dc:date>2022-06-22T20:56:04Z</dc:date>
    </item>
  </channel>
</rss>

