<?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: Question about CASUSER library in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/Question-about-CASUSER-library/m-p/431746#M113</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/184706"&gt;@bkv_nextbridge&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have to use PROMOTE Statement in CASUTIL procedure. The PROMOTE statement copies a session-scope table to global scope.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Documentation:&amp;nbsp;&lt;A href="http://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.3&amp;amp;docsetId=casref&amp;amp;docsetTarget=p1742zxo50czfgn1czlo8w3w58mt.htm&amp;amp;locale=en" target="_self"&gt;SAS® 9.4 and SAS® Viya® 3.3 Programming Documentation -&amp;gt; CAS User’s Guide -&amp;gt; CASUTIL Procedure -&amp;gt; PROMOTE Statement&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.3&amp;amp;docsetId=casref&amp;amp;docsetTarget=p05ccny5glgvwan19mkisxi8z1jk.htm&amp;amp;locale=en" target="_self"&gt;Example 3: Promote a Table&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;caslib hps datasource=(srctype="path") path="/hps" global;

cas casauto sessopts=(caslib="casuser");

libname mycas cas;

proc casutil;
   load data=sashelp.iris casout="irisraw";
quit;

data mycas.irisout;                                   
   set mycas.irisraw;
   sepalratio = sepalwidth / sepallength;
   petalratio = petalwidth / petallength;
run;

/*
 * The purpose for outcaslib= is to show how to 
 * work with more than one caslib.
 */
proc casutil outcaslib="hps";                         
   promote casdata="irisout";
quit;

proc casutil incaslib="hps";
   contents casdata="irisout";
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 29 Jan 2018 12:02:31 GMT</pubDate>
    <dc:creator>alexal</dc:creator>
    <dc:date>2018-01-29T12:02:31Z</dc:date>
    <item>
      <title>Question about CASUSER library</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Question-about-CASUSER-library/m-p/431732#M112</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I am new to Viya.&lt;/P&gt;&lt;P&gt;I have one URL to SAS Studio and another for VA and SAS Environment Manager. They both point to the same server and I log on to both with the same credentials.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The CASUSER Library that I have in Studio is not the same as the CASUSER Library I have in VA and Environment Manager. The disk portion of the libraries are in different folders.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can use Studio to load&amp;nbsp; a table into CASUSER, but this table will not be available to me in VA. And if I load a table into CASUSER on the SAS Environment Manager, it is not reachable in Studio.&amp;nbsp; Is that how it is supposed to be?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bjørn&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 10:51:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Question-about-CASUSER-library/m-p/431732#M112</guid>
      <dc:creator>bkv_nextbridge</dc:creator>
      <dc:date>2018-01-29T10:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Question about CASUSER library</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Question-about-CASUSER-library/m-p/431746#M113</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/184706"&gt;@bkv_nextbridge&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have to use PROMOTE Statement in CASUTIL procedure. The PROMOTE statement copies a session-scope table to global scope.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Documentation:&amp;nbsp;&lt;A href="http://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.3&amp;amp;docsetId=casref&amp;amp;docsetTarget=p1742zxo50czfgn1czlo8w3w58mt.htm&amp;amp;locale=en" target="_self"&gt;SAS® 9.4 and SAS® Viya® 3.3 Programming Documentation -&amp;gt; CAS User’s Guide -&amp;gt; CASUTIL Procedure -&amp;gt; PROMOTE Statement&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.3&amp;amp;docsetId=casref&amp;amp;docsetTarget=p05ccny5glgvwan19mkisxi8z1jk.htm&amp;amp;locale=en" target="_self"&gt;Example 3: Promote a Table&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;caslib hps datasource=(srctype="path") path="/hps" global;

cas casauto sessopts=(caslib="casuser");

libname mycas cas;

proc casutil;
   load data=sashelp.iris casout="irisraw";
quit;

data mycas.irisout;                                   
   set mycas.irisraw;
   sepalratio = sepalwidth / sepallength;
   petalratio = petalwidth / petallength;
run;

/*
 * The purpose for outcaslib= is to show how to 
 * work with more than one caslib.
 */
proc casutil outcaslib="hps";                         
   promote casdata="irisout";
quit;

proc casutil incaslib="hps";
   contents casdata="irisout";
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Jan 2018 12:02:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Question-about-CASUSER-library/m-p/431746#M113</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2018-01-29T12:02:31Z</dc:date>
    </item>
  </channel>
</rss>

