<?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: Coding in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Coding/m-p/673848#M202789</link>
    <description>&lt;P&gt;Check your Libnames very carefully in each place they are used, step by step.&amp;nbsp; Recall also that if no Libname is specified, WORK is used.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, in the below code, note how there is no Libname specified in the DATA step.&amp;nbsp; When the step runs, it will create a dataset, but it will be in the WORK library.&amp;nbsp; Then, when the Proc Print runs, it will print from the previously created Perm_Lib version of the data set which could be hours, days, or even weeks old.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA  My_Data;
     *Amazing SAS code goes here.;
RUN;

PROC PRINT DATA=&lt;STRONG&gt;Perm_Lib.&lt;/STRONG&gt;My_Data;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;To correct the issue and get the most current data, you would either need to add a Libname to the DATA step or delete the Libname from the Proc Print.&amp;nbsp; Something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA  &lt;STRONG&gt;Perm_Lib.&lt;/STRONG&gt;My_Data;
     *Amazing SAS code goes here.;
RUN;

PROC PRINT DATA=Perm_Lib.My_Data;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For this reason, I make it my practice to always code the WORK libname so that it's clear exactly which version of a dataset I'm looking at.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 31 Jul 2020 23:58:45 GMT</pubDate>
    <dc:creator>jimbarbour</dc:creator>
    <dc:date>2020-07-31T23:58:45Z</dc:date>
    <item>
      <title>Coding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Coding/m-p/673789#M202755</link>
      <description>&lt;P&gt;I have entered several problems into SAS Studio today.&amp;nbsp; My current problem is that I have entered my code for a new problem with a new data set and the output results are using the data set from a previous problem from earlier today.&amp;nbsp; I have even attempted to re-write the code in a new program and the same data set from earlier in the day is still being used on when the new data set should be running.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This has not happened previous to the update conducted yesterday.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions??&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 17:08:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Coding/m-p/673789#M202755</guid>
      <dc:creator>cookie111</dc:creator>
      <dc:date>2020-07-31T17:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Coding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Coding/m-p/673795#M202759</link>
      <description>&lt;P&gt;Please post the&amp;nbsp;&lt;EM&gt;whole&lt;/EM&gt; log of the step(s) that give(s) you trouble. Copy/paste the log as is into a window opened with this button:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg"&gt;&lt;img src="https://communities.sas.com/skins/images/8D8B612AA6AB1DC7E9A0812281D56E02/responsive_peak/images/image_not_found.png" alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 17:30:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Coding/m-p/673795#M202759</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-07-31T17:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Coding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Coding/m-p/673848#M202789</link>
      <description>&lt;P&gt;Check your Libnames very carefully in each place they are used, step by step.&amp;nbsp; Recall also that if no Libname is specified, WORK is used.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, in the below code, note how there is no Libname specified in the DATA step.&amp;nbsp; When the step runs, it will create a dataset, but it will be in the WORK library.&amp;nbsp; Then, when the Proc Print runs, it will print from the previously created Perm_Lib version of the data set which could be hours, days, or even weeks old.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA  My_Data;
     *Amazing SAS code goes here.;
RUN;

PROC PRINT DATA=&lt;STRONG&gt;Perm_Lib.&lt;/STRONG&gt;My_Data;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;To correct the issue and get the most current data, you would either need to add a Libname to the DATA step or delete the Libname from the Proc Print.&amp;nbsp; Something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA  &lt;STRONG&gt;Perm_Lib.&lt;/STRONG&gt;My_Data;
     *Amazing SAS code goes here.;
RUN;

PROC PRINT DATA=Perm_Lib.My_Data;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For this reason, I make it my practice to always code the WORK libname so that it's clear exactly which version of a dataset I'm looking at.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 23:58:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Coding/m-p/673848#M202789</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2020-07-31T23:58:45Z</dc:date>
    </item>
  </channel>
</rss>

