<?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 Promote tables from session scope to global scope in caslib in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Promote-tables-from-session-scope-to-global-scope-in-caslib/m-p/860048#M339768</link>
    <description>&lt;P&gt;Hi Everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am writing datasets from a SAS Base library to a CASLIB using the below code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;proc datasets lib=dash; /* This is my SAS Base library */&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;copy out=cldast; /* This is my CASLIB */&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;run;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I want these tables to be available in SAS VA for which I believe I will have to promote the datasets in the CASLIB to a global scope. Is there a way to promote all the tables at once or do I need to promote each table one by one using the CASUTIL PROMOTE procedure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dishen&lt;/P&gt;</description>
    <pubDate>Tue, 21 Feb 2023 23:32:18 GMT</pubDate>
    <dc:creator>dishenpancholi</dc:creator>
    <dc:date>2023-02-21T23:32:18Z</dc:date>
    <item>
      <title>Promote tables from session scope to global scope in caslib</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Promote-tables-from-session-scope-to-global-scope-in-caslib/m-p/860048#M339768</link>
      <description>&lt;P&gt;Hi Everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am writing datasets from a SAS Base library to a CASLIB using the below code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;proc datasets lib=dash; /* This is my SAS Base library */&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;copy out=cldast; /* This is my CASLIB */&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;run;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I want these tables to be available in SAS VA for which I believe I will have to promote the datasets in the CASLIB to a global scope. Is there a way to promote all the tables at once or do I need to promote each table one by one using the CASUTIL PROMOTE procedure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dishen&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 23:32:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Promote-tables-from-session-scope-to-global-scope-in-caslib/m-p/860048#M339768</guid>
      <dc:creator>dishenpancholi</dc:creator>
      <dc:date>2023-02-21T23:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Promote tables from session scope to global scope in caslib</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Promote-tables-from-session-scope-to-global-scope-in-caslib/m-p/861273#M340215</link>
      <description>&lt;P&gt;I don't see a way to do this with proc datasets (nor proc copy) but it would be nice to have.&amp;nbsp; Maybe something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc datasets lib=dash; 
copy out=cldast promote=yes; 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You could suggest it:&amp;nbsp;&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SASware-Ballot-Ideas/idb-p/sas_ideas" target="_blank"&gt;https://communities.sas.com/t5/SASware-Ballot-Ideas/idb-p/sas_ideas&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the meantime, proc cas can be used to promote all the tables in a caslib:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc cas;
  table.tableinfo result=tablesToPromote / caslib="cldast";
  do i = 1 to dim(tablesToPromote.TableInfo);
      tname = tablesToPromote.TableInfo[i,'Name'];
      table.promote / caslib="cldast" name=tname;
  end;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 03:36:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Promote-tables-from-session-scope-to-global-scope-in-caslib/m-p/861273#M340215</guid>
      <dc:creator>DerylHollick</dc:creator>
      <dc:date>2023-02-28T03:36:52Z</dc:date>
    </item>
  </channel>
</rss>

