<?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 SAS code for storing final results in a file and retrieving without going through all steps in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/SAS-code-for-storing-final-results-in-a-file-and-retrieving/m-p/632210#M8922</link>
    <description>&lt;DIV class="lia-message-heading lia-component-message-header"&gt;
&lt;DIV class="lia-quilt-row lia-quilt-row-standard"&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-20 lia-quilt-column-left"&gt;
&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-left"&gt;
&lt;DIV class="lia-message-subject"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P class="lia-message-dates lia-message-post-date lia-component-post-date-last-edited"&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="messagebodydisplay_0" class="lia-message-body"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I would appreciate if someone could help me with the SAS code for storing final results at a file and retrieving the information directly from the stored dataset and using it without going through all the several steps.&lt;/P&gt;
&lt;P&gt;Please find below this dataset and the SAS procedures used to arrive at the final dataset t2b.&lt;/P&gt;
&lt;P&gt;Eg. if I complete work today and write final results to dataset t2b. Is there a code to directly obtain the stored information and use to for for say logistic regression without going though all the many steps?&lt;/P&gt;
&lt;PRE&gt;&lt;BR /&gt;/*DATASET 1*/&lt;BR /&gt;data idnew1;&lt;BR /&gt;input id$ job idchem;&lt;BR /&gt;datalines;&lt;BR /&gt;os1 1 990005 &lt;BR /&gt;os1 1 990021&lt;BR /&gt;os1 1 211700&lt;BR /&gt;os1 2 211700&lt;BR /&gt;os1 2 990021&lt;BR /&gt;os1 2 210701&lt;BR /&gt;os1 2 990005&lt;BR /&gt;os2 1 210701&lt;BR /&gt;os2 1 990005&lt;BR /&gt;os2 2 990021&lt;BR /&gt;os2 3 210701&lt;BR /&gt;os2 3 990005&lt;BR /&gt;os3 3 210701&lt;BR /&gt;os3 1 211700&lt;BR /&gt;os4 1 210701&lt;BR /&gt;os4 1 990005&lt;BR /&gt;os4 1 211700&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;proc format;&lt;BR /&gt;value idchem&lt;BR /&gt;990005 = "cla_exp"&lt;BR /&gt;990021 = "bio_exp"&lt;BR /&gt;210701 = "amo_exp"&lt;BR /&gt;211700 = "chl_exp";&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;data temp;&lt;BR /&gt;set idnew1;&lt;BR /&gt;dum = 1;&lt;BR /&gt;format idchem idchem.;&lt;BR /&gt;id_job=catx('_', id, job); &lt;BR /&gt;put _all_; &lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc sort data=temp; by id job id_job; run;&lt;BR /&gt;&lt;BR /&gt;proc transpose data=temp out=idnew2(drop=_name_);&lt;BR /&gt;by id job id_job;&lt;BR /&gt;id idchem;&lt;BR /&gt;var dum;&lt;BR /&gt;run;&lt;BR /&gt;proc print data=idnew2;&lt;BR /&gt;Title "Table 1: Merged exposure files for cla, bio, amo and chl pollutants";&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;/*Replacing missing values(.)with zeros(0) ie. unexposed*/&lt;BR /&gt;data t;&lt;BR /&gt;set idnew2;&lt;BR /&gt;proc stdize out=t2 reponly missing=0;&lt;BR /&gt;drop _type_; &lt;BR /&gt;run;&lt;BR /&gt;proc sort; by id job;&lt;BR /&gt;Title " Table 2: Merged exposure files for cla, bio, amo and chl pollutants: missing values replaced with zeros";&lt;BR /&gt;&lt;BR /&gt;proc print data=t2; run;&lt;BR /&gt;&lt;BR /&gt;/*FINDING FREQUENCIES OF ASSOCIATIONS*/&lt;BR /&gt;proc freq data=t2;&lt;BR /&gt;tables &lt;BR /&gt;	cla_exp*bio_exp &lt;BR /&gt;	cla_exp*amo_exp &lt;BR /&gt;	cla_exp*chl_exp &lt;BR /&gt;	bio_exp*amo_exp&lt;BR /&gt;	bio_exp*chl_exp&lt;BR /&gt;	bio_exp*chl_exp;&lt;BR /&gt;	&lt;BR /&gt;Title "Frequencies of associations between cla, bio, amo and chl pollutants";&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;/* COUNTING EXPOSED IDS PER AGENT! GOOD! KEEP IT!*/&lt;BR /&gt;/* CHECKING NUMBER OF UNIQUE IDS*/&lt;BR /&gt;&lt;BR /&gt;Proc summary data= t2 nway ;&lt;BR /&gt;class id;&lt;BR /&gt;var cla_exp bio_exp amo_exp chl_exp;&lt;BR /&gt;output out=t2b(drop=_type_ _freq_) max=;&lt;BR /&gt;run;&lt;BR /&gt;Title "Table of unique IDs for cla bio amo and chl";&lt;BR /&gt;proc print;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;proc freq data=t2b;&lt;BR /&gt;tables cla_exp bio_exp amo_exp chl_exp; &lt;BR /&gt;Title "Unique ids frequecies for cla, bio, amo and chl";&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc freq data=t2b;&lt;BR /&gt;tables &lt;BR /&gt;	cla_exp*bio_exp &lt;BR /&gt;	cla_exp*amo_exp &lt;BR /&gt;	cla_exp*chl_exp &lt;BR /&gt;	bio_exp*amo_exp&lt;BR /&gt;	bio_exp*chl_exp&lt;BR /&gt;	bio_exp*chl_exp;&lt;BR /&gt;	&lt;BR /&gt;Title "Frequencies of UNIQUE IDS exposure associations between cla, bio, amo and chl agents";&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;Next time,I wish to start work directly form dataset t2b and not to run entire work again &lt;BR /&gt;ie. starting from dataset idnew1. Please find attached SAS log.&lt;BR /&gt;&lt;BR /&gt;Thank you in advance.&lt;BR /&gt;&lt;BR /&gt;ak.&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Sun, 15 Mar 2020 02:37:26 GMT</pubDate>
    <dc:creator>ak2011</dc:creator>
    <dc:date>2020-03-15T02:37:26Z</dc:date>
    <item>
      <title>SAS code for storing final results in a file and retrieving without going through all steps</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-code-for-storing-final-results-in-a-file-and-retrieving/m-p/632209#M8918</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I would appreciate if someone could help me with the SAS code for storing final results at a file and retrieving the information directly from the stored dataset and using it without going through all the several steps.&lt;/P&gt;
&lt;P&gt;Please find below this dataset and the SAS procedures used to arrive at the final dataset t2b.&lt;/P&gt;
&lt;P&gt;Eg. if I complete work today and write final results to dataset t2b. Is there a code to directly obtain the stored information and use to for for say logistic regression without going though all the many steps?&lt;/P&gt;
&lt;PRE&gt;&lt;BR /&gt;/*DATASET 1*/&lt;BR /&gt;data idnew1;&lt;BR /&gt;input id$ job idchem;&lt;BR /&gt;datalines;&lt;BR /&gt;os1 1 990005 &lt;BR /&gt;os1 1 990021&lt;BR /&gt;os1 1 211700&lt;BR /&gt;os1 2 211700&lt;BR /&gt;os1 2 990021&lt;BR /&gt;os1 2 210701&lt;BR /&gt;os1 2 990005&lt;BR /&gt;os2 1 210701&lt;BR /&gt;os2 1 990005&lt;BR /&gt;os2 2 990021&lt;BR /&gt;os2 3 210701&lt;BR /&gt;os2 3 990005&lt;BR /&gt;os3 3 210701&lt;BR /&gt;os3 1 211700&lt;BR /&gt;os4 1 210701&lt;BR /&gt;os4 1 990005&lt;BR /&gt;os4 1 211700&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;proc format;&lt;BR /&gt;value idchem&lt;BR /&gt;990005 = "cla_exp"&lt;BR /&gt;990021 = "bio_exp"&lt;BR /&gt;210701 = "amo_exp"&lt;BR /&gt;211700 = "chl_exp";&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;data temp;&lt;BR /&gt;set idnew1;&lt;BR /&gt;dum = 1;&lt;BR /&gt;format idchem idchem.;&lt;BR /&gt;id_job=catx('_', id, job); &lt;BR /&gt;put _all_; &lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc sort data=temp; by id job id_job; run;&lt;BR /&gt;&lt;BR /&gt;proc transpose data=temp out=idnew2(drop=_name_);&lt;BR /&gt;by id job id_job;&lt;BR /&gt;id idchem;&lt;BR /&gt;var dum;&lt;BR /&gt;run;&lt;BR /&gt;proc print data=idnew2;&lt;BR /&gt;Title "Table 1: Merged exposure files for cla, bio, amo and chl pollutants";&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;/*Replacing missing values(.)with zeros(0) ie. unexposed*/&lt;BR /&gt;data t;&lt;BR /&gt;set idnew2;&lt;BR /&gt;proc stdize out=t2 reponly missing=0;&lt;BR /&gt;drop _type_; &lt;BR /&gt;run;&lt;BR /&gt;proc sort; by id job;&lt;BR /&gt;Title " Table 2: Merged exposure files for cla, bio, amo and chl pollutants: missing values replaced with zeros";&lt;BR /&gt;&lt;BR /&gt;proc print data=t2; run;&lt;BR /&gt;&lt;BR /&gt;/*FINDING FREQUENCIES OF ASSOCIATIONS*/&lt;BR /&gt;proc freq data=t2;&lt;BR /&gt;tables &lt;BR /&gt;	cla_exp*bio_exp &lt;BR /&gt;	cla_exp*amo_exp &lt;BR /&gt;	cla_exp*chl_exp &lt;BR /&gt;	bio_exp*amo_exp&lt;BR /&gt;	bio_exp*chl_exp&lt;BR /&gt;	bio_exp*chl_exp;&lt;BR /&gt;	&lt;BR /&gt;Title "Frequencies of associations between cla, bio, amo and chl pollutants";&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;/* COUNTING EXPOSED IDS PER AGENT! GOOD! KEEP IT!*/&lt;BR /&gt;/* CHECKING NUMBER OF UNIQUE IDS*/&lt;BR /&gt;&lt;BR /&gt;Proc summary data= t2 nway ;&lt;BR /&gt;class id;&lt;BR /&gt;var cla_exp bio_exp amo_exp chl_exp;&lt;BR /&gt;output out=t2b(drop=_type_ _freq_) max=;&lt;BR /&gt;run;&lt;BR /&gt;Title "Table of unique IDs for cla bio amo and chl";&lt;BR /&gt;proc print;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;proc freq data=t2b;&lt;BR /&gt;tables cla_exp bio_exp amo_exp chl_exp; &lt;BR /&gt;Title "Unique ids frequecies for cla, bio, amo and chl";&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc freq data=t2b;&lt;BR /&gt;tables &lt;BR /&gt;	cla_exp*bio_exp &lt;BR /&gt;	cla_exp*amo_exp &lt;BR /&gt;	cla_exp*chl_exp &lt;BR /&gt;	bio_exp*amo_exp&lt;BR /&gt;	bio_exp*chl_exp&lt;BR /&gt;	bio_exp*chl_exp;&lt;BR /&gt;	&lt;BR /&gt;Title "Frequencies of UNIQUE IDS exposure associations between cla, bio, amo and chl agents";&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;Next time,I wish to start work directly form dataset t2b and not to run entire work again &lt;BR /&gt;ie. starting from dataset idnew1. Please find attached SAS log.&lt;BR /&gt;&lt;BR /&gt;Thank you in advance.&lt;BR /&gt;&lt;BR /&gt;ak.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 15 Mar 2020 02:30:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-code-for-storing-final-results-in-a-file-and-retrieving/m-p/632209#M8918</guid>
      <dc:creator>ak2011</dc:creator>
      <dc:date>2020-03-15T02:30:50Z</dc:date>
    </item>
    <item>
      <title>SAS code for storing final results in a file and retrieving without going through all steps</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-code-for-storing-final-results-in-a-file-and-retrieving/m-p/632210#M8922</link>
      <description>&lt;DIV class="lia-message-heading lia-component-message-header"&gt;
&lt;DIV class="lia-quilt-row lia-quilt-row-standard"&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-20 lia-quilt-column-left"&gt;
&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-left"&gt;
&lt;DIV class="lia-message-subject"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P class="lia-message-dates lia-message-post-date lia-component-post-date-last-edited"&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="messagebodydisplay_0" class="lia-message-body"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I would appreciate if someone could help me with the SAS code for storing final results at a file and retrieving the information directly from the stored dataset and using it without going through all the several steps.&lt;/P&gt;
&lt;P&gt;Please find below this dataset and the SAS procedures used to arrive at the final dataset t2b.&lt;/P&gt;
&lt;P&gt;Eg. if I complete work today and write final results to dataset t2b. Is there a code to directly obtain the stored information and use to for for say logistic regression without going though all the many steps?&lt;/P&gt;
&lt;PRE&gt;&lt;BR /&gt;/*DATASET 1*/&lt;BR /&gt;data idnew1;&lt;BR /&gt;input id$ job idchem;&lt;BR /&gt;datalines;&lt;BR /&gt;os1 1 990005 &lt;BR /&gt;os1 1 990021&lt;BR /&gt;os1 1 211700&lt;BR /&gt;os1 2 211700&lt;BR /&gt;os1 2 990021&lt;BR /&gt;os1 2 210701&lt;BR /&gt;os1 2 990005&lt;BR /&gt;os2 1 210701&lt;BR /&gt;os2 1 990005&lt;BR /&gt;os2 2 990021&lt;BR /&gt;os2 3 210701&lt;BR /&gt;os2 3 990005&lt;BR /&gt;os3 3 210701&lt;BR /&gt;os3 1 211700&lt;BR /&gt;os4 1 210701&lt;BR /&gt;os4 1 990005&lt;BR /&gt;os4 1 211700&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;proc format;&lt;BR /&gt;value idchem&lt;BR /&gt;990005 = "cla_exp"&lt;BR /&gt;990021 = "bio_exp"&lt;BR /&gt;210701 = "amo_exp"&lt;BR /&gt;211700 = "chl_exp";&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;data temp;&lt;BR /&gt;set idnew1;&lt;BR /&gt;dum = 1;&lt;BR /&gt;format idchem idchem.;&lt;BR /&gt;id_job=catx('_', id, job); &lt;BR /&gt;put _all_; &lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc sort data=temp; by id job id_job; run;&lt;BR /&gt;&lt;BR /&gt;proc transpose data=temp out=idnew2(drop=_name_);&lt;BR /&gt;by id job id_job;&lt;BR /&gt;id idchem;&lt;BR /&gt;var dum;&lt;BR /&gt;run;&lt;BR /&gt;proc print data=idnew2;&lt;BR /&gt;Title "Table 1: Merged exposure files for cla, bio, amo and chl pollutants";&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;/*Replacing missing values(.)with zeros(0) ie. unexposed*/&lt;BR /&gt;data t;&lt;BR /&gt;set idnew2;&lt;BR /&gt;proc stdize out=t2 reponly missing=0;&lt;BR /&gt;drop _type_; &lt;BR /&gt;run;&lt;BR /&gt;proc sort; by id job;&lt;BR /&gt;Title " Table 2: Merged exposure files for cla, bio, amo and chl pollutants: missing values replaced with zeros";&lt;BR /&gt;&lt;BR /&gt;proc print data=t2; run;&lt;BR /&gt;&lt;BR /&gt;/*FINDING FREQUENCIES OF ASSOCIATIONS*/&lt;BR /&gt;proc freq data=t2;&lt;BR /&gt;tables &lt;BR /&gt;	cla_exp*bio_exp &lt;BR /&gt;	cla_exp*amo_exp &lt;BR /&gt;	cla_exp*chl_exp &lt;BR /&gt;	bio_exp*amo_exp&lt;BR /&gt;	bio_exp*chl_exp&lt;BR /&gt;	bio_exp*chl_exp;&lt;BR /&gt;	&lt;BR /&gt;Title "Frequencies of associations between cla, bio, amo and chl pollutants";&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;/* COUNTING EXPOSED IDS PER AGENT! GOOD! KEEP IT!*/&lt;BR /&gt;/* CHECKING NUMBER OF UNIQUE IDS*/&lt;BR /&gt;&lt;BR /&gt;Proc summary data= t2 nway ;&lt;BR /&gt;class id;&lt;BR /&gt;var cla_exp bio_exp amo_exp chl_exp;&lt;BR /&gt;output out=t2b(drop=_type_ _freq_) max=;&lt;BR /&gt;run;&lt;BR /&gt;Title "Table of unique IDs for cla bio amo and chl";&lt;BR /&gt;proc print;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;proc freq data=t2b;&lt;BR /&gt;tables cla_exp bio_exp amo_exp chl_exp; &lt;BR /&gt;Title "Unique ids frequecies for cla, bio, amo and chl";&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc freq data=t2b;&lt;BR /&gt;tables &lt;BR /&gt;	cla_exp*bio_exp &lt;BR /&gt;	cla_exp*amo_exp &lt;BR /&gt;	cla_exp*chl_exp &lt;BR /&gt;	bio_exp*amo_exp&lt;BR /&gt;	bio_exp*chl_exp&lt;BR /&gt;	bio_exp*chl_exp;&lt;BR /&gt;	&lt;BR /&gt;Title "Frequencies of UNIQUE IDS exposure associations between cla, bio, amo and chl agents";&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;Next time,I wish to start work directly form dataset t2b and not to run entire work again &lt;BR /&gt;ie. starting from dataset idnew1. Please find attached SAS log.&lt;BR /&gt;&lt;BR /&gt;Thank you in advance.&lt;BR /&gt;&lt;BR /&gt;ak.&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 15 Mar 2020 02:37:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-code-for-storing-final-results-in-a-file-and-retrieving/m-p/632210#M8922</guid>
      <dc:creator>ak2011</dc:creator>
      <dc:date>2020-03-15T02:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code for storing final results in a file and retrieving without going through all steps</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-code-for-storing-final-results-in-a-file-and-retrieving/m-p/632212#M8920</link>
      <description>&lt;P&gt;To keep results you need use your own assigned library.&lt;/P&gt;
&lt;P&gt;Define a final library by&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname &amp;lt;final libref&amp;gt; &amp;lt;path to a folder&amp;gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;/*&amp;nbsp;final&amp;nbsp;library&amp;nbsp;reference&amp;nbsp;name&amp;nbsp;*/&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;then use it:&lt;/P&gt;
&lt;P&gt;1) to keep the created formats by&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format lib=&amp;lt;final libref&amp;gt; ;
   ... your code ...
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;2) creating final data sets:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data &amp;lt;final libref&amp;gt;.&amp;lt;dataset name&amp;gt;;
    ...any code ...
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have any issue, post the log using the {i} icon on top this window.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Mar 2020 03:08:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-code-for-storing-final-results-in-a-file-and-retrieving/m-p/632212#M8920</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-03-15T03:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code for storing final results in a file and retrieving without going through all steps</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-code-for-storing-final-results-in-a-file-and-retrieving/m-p/632213#M8923</link>
      <description>&lt;P&gt;You can address table names in the form &amp;lt;libref&amp;gt;.&amp;lt;table name&amp;gt;&lt;/P&gt;
&lt;P&gt;If you only use the table name in your code then SAS uses WORK as libref: WORK.&amp;lt;table name&amp;gt;&lt;/P&gt;
&lt;P&gt;WORK is a location on your disk which SAS removes when you terminate a SAS session.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can define a libname (or use an existing one) to define the path to a folder (on the SAS server side) where you want to store your SAS tables permanently. You then use this libref so the table doesn't get created in WORK but in the folder the libref points to.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At begin of a new SAS session just issue the libname statement again. This gives you access to all SAS tables created under this folder in earlier sessions.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname mydata '&amp;lt;path to folder&amp;gt;';

proc freq data=mydata.t2b;
  tables cla_exp bio_exp amo_exp chl_exp;
  Title "Unique ids frequecies for cla, bio, amo and chl";
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 15 Mar 2020 03:12:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-code-for-storing-final-results-in-a-file-and-retrieving/m-p/632213#M8923</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2020-03-15T03:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code for storing final results in a file and retrieving without going through all steps</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-code-for-storing-final-results-in-a-file-and-retrieving/m-p/632392#M8928</link>
      <description>Thank you so much!</description>
      <pubDate>Mon, 16 Mar 2020 11:01:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-code-for-storing-final-results-in-a-file-and-retrieving/m-p/632392#M8928</guid>
      <dc:creator>ak2011</dc:creator>
      <dc:date>2020-03-16T11:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code for storing final results in a file and retrieving without going through all steps</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-code-for-storing-final-results-in-a-file-and-retrieving/m-p/632393#M8929</link>
      <description>Thank you!</description>
      <pubDate>Mon, 16 Mar 2020 11:04:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-code-for-storing-final-results-in-a-file-and-retrieving/m-p/632393#M8929</guid>
      <dc:creator>ak2011</dc:creator>
      <dc:date>2020-03-16T11:04:44Z</dc:date>
    </item>
  </channel>
</rss>

