<?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 do I use updated programs and data in other projects? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-updated-programs-and-data-in-other-projects/m-p/916880#M361148</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/268379"&gt;@CJJC&lt;/a&gt;&amp;nbsp;It shouldn't be really necessary to delete all these tables if you re-run all the code that creates them. ...but it's eventually a good check to verify that you really run all the code that creates them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below a scripted approach for such a deletion.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* select all tables under libref PMDATA that match search condition */
/* store result in macro variable &amp;amp;memlist                           */
proc sql noprint;
  select memname into :memlist separated by ' '
  from dictionary.tables
  where libname='PMDATA' and memname like 'LEVEL%OVERALL_FINALSCORE'
  ;
quit;

/* delete all tables listed in macro variable &amp;amp;memlist */
proc datasets lib=PMDATA nolist nowarn;
  delete &amp;amp;memlist;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 19 Feb 2024 23:37:03 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2024-02-19T23:37:03Z</dc:date>
    <item>
      <title>How do I use updated programs and data in other projects?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-updated-programs-and-data-in-other-projects/m-p/916716#M361084</link>
      <description>&lt;P&gt;Hello!&amp;nbsp; Please help a SAS EG new user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 6 separate projects that are producing 6 final scores;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mylib.Level1_finalscore,&lt;/P&gt;&lt;P&gt;mylib.Level2_finalscore,&lt;/P&gt;&lt;P&gt;mylib.Level3_finalscore, etc., through mylib.Level6_finalscore&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then have an overall score project that adds all the scores together:&amp;nbsp; mylib.overall_finalscore&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I needed to correct the programming in levels 1 and 2 to calculate the correct scores, and have saved them as permanent datasets. When I run the last project the updated versions of Levels 1 and 2 are not being run.&amp;nbsp; The old incorrect tables are still in the project and not the new versions.&amp;nbsp; How do I get SAS EG to recognize/update/refresh (I'm not sure what term to use) the datasets?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* 1. Merge all segments and finalscore datasets.*/&lt;/P&gt;&lt;P&gt;Data PMdata.StackAll ;&lt;/P&gt;&lt;P&gt;merge PMdata.pmsegments&lt;BR /&gt;PMdata.Level1_overall_finalscore&lt;BR /&gt;PMdata.Level2_overall_finalscore&lt;BR /&gt;PMdata.Level3_overall_finalscore&lt;BR /&gt;PMdata.Level4A_overall_finalscore&lt;BR /&gt;PMdata.Level4B_overall_finalscore&lt;BR /&gt;PMdata.Level4C_overall_finalscore;&lt;BR /&gt;by PM_order;&lt;BR /&gt;if MD_PM_segment = . then delete;&lt;/P&gt;&lt;P&gt;Proc sort;&lt;BR /&gt;by PM_order;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&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;</description>
      <pubDate>Sun, 18 Feb 2024 23:40:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-updated-programs-and-data-in-other-projects/m-p/916716#M361084</guid>
      <dc:creator>CJJC</dc:creator>
      <dc:date>2024-02-18T23:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use updated programs and data in other projects?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-updated-programs-and-data-in-other-projects/m-p/916718#M361085</link>
      <description>&lt;P&gt;I assume new to SAS EG means new to SAS?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS EG is your client with which you connect to a SAS server. SAS EG sends SAS code to a SAS server for execution and then surfaces the log and results.&lt;/P&gt;
&lt;P&gt;The data (the SAS table) is stored on the SAS Server side.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ensure that your libname for the same libref always points to the same physical path in any program and that you're always connecting to the same SAS server for running your programs (example: SASApp).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If above two conditions are met then first run the program that creates the tables. These tables are physical files with extension .sas7bdat and stored under the folder to which your libref points. There can only ever be a single instance (version) of such a physical file in a folder.&amp;nbsp;If you change these tables then they will be changed for any program that accesses them later (as long as you execute under the same SAS Server and&amp;nbsp; the libname (libref) used points to the same folder).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To avoid table locking issues and ensure you're always looking at recent data make sure to set below two EG options&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1708300856095.png" style="width: 605px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/93900iACDC7D0EC3157BD6/image-dimensions/605x481?v=v2" width="605" height="481" role="button" title="Patrick_0-1708300856095.png" alt="Patrick_0-1708300856095.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 00:02:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-updated-programs-and-data-in-other-projects/m-p/916718#M361085</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-02-19T00:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use updated programs and data in other projects?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-updated-programs-and-data-in-other-projects/m-p/916854#M361136</link>
      <description>&lt;P&gt;Hello Patrick,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for replying.&amp;nbsp; I found the options tool --&amp;gt;data---&amp;gt;performance but unfortunately the only check box I have is "close data grid after period of inactivity (specify in minutes".&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm going to try deleting all of my finalscore datasets, then rerun the projects to see if the corrected data is then available to pull into the final project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 19:42:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-updated-programs-and-data-in-other-projects/m-p/916854#M361136</guid>
      <dc:creator>CJJC</dc:creator>
      <dc:date>2024-02-19T19:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use updated programs and data in other projects?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-updated-programs-and-data-in-other-projects/m-p/916880#M361148</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/268379"&gt;@CJJC&lt;/a&gt;&amp;nbsp;It shouldn't be really necessary to delete all these tables if you re-run all the code that creates them. ...but it's eventually a good check to verify that you really run all the code that creates them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below a scripted approach for such a deletion.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* select all tables under libref PMDATA that match search condition */
/* store result in macro variable &amp;amp;memlist                           */
proc sql noprint;
  select memname into :memlist separated by ' '
  from dictionary.tables
  where libname='PMDATA' and memname like 'LEVEL%OVERALL_FINALSCORE'
  ;
quit;

/* delete all tables listed in macro variable &amp;amp;memlist */
proc datasets lib=PMDATA nolist nowarn;
  delete &amp;amp;memlist;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Feb 2024 23:37:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-updated-programs-and-data-in-other-projects/m-p/916880#M361148</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-02-19T23:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use updated programs and data in other projects?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-updated-programs-and-data-in-other-projects/m-p/916966#M361190</link>
      <description>Thank you so much!&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Feb 2024 12:52:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-updated-programs-and-data-in-other-projects/m-p/916966#M361190</guid>
      <dc:creator>CJJC</dc:creator>
      <dc:date>2024-02-20T12:52:01Z</dc:date>
    </item>
  </channel>
</rss>

