<?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: SAS Viya for Learners - Create data sets throgh datalines in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-Viya-for-Learners-Create-data-sets-throgh-datalines/m-p/752334#M8789</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/3045"&gt;@andreas_zaras&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm glad to hear that it's working now! Thanks for letting me know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, you are technically promoting the &lt;EM&gt;data table&lt;/EM&gt; to have global scope (so it is accessible across different CAS sessions, which enables you to use it in different Viya applications) instead of session scope (accessible only in that specific CAS session), but the CAS library itself is not being promoted. Just wanted to let you know for your own knowledge because I know that it took me a little while to wrap my head around this sort of stuff when I first started to use Viya.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Brian&lt;/P&gt;</description>
    <pubDate>Tue, 06 Jul 2021 15:05:57 GMT</pubDate>
    <dc:creator>BrianGaines</dc:creator>
    <dc:date>2021-07-06T15:05:57Z</dc:date>
    <item>
      <title>SAS Viya for Learners - Create data sets throgh datalines</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-Viya-for-Learners-Create-data-sets-throgh-datalines/m-p/752114#M8784</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using Viya for Learners. I go to SAS Studio and i make the cas libraries appear throogh the follloing snippet:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cas; &lt;BR /&gt;caslib _all_ assign;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then i create a data set using the data step's datalines facility and i save it in the public cas library.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Through SAS studio i can do anything with this data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then i create a project in Model Studio and i search the public cas libnrary but the newly created data set through data step's datalines in SAS Studio is not there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a workaround to allow me to use such a data set in Model Studio?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Andreas&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 16:05:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/SAS-Viya-for-Learners-Create-data-sets-throgh-datalines/m-p/752114#M8784</guid>
      <dc:creator>andreas_zaras</dc:creator>
      <dc:date>2021-07-05T16:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Viya for Learners - Create data sets throgh datalines</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-Viya-for-Learners-Create-data-sets-throgh-datalines/m-p/752117#M8785</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/3045"&gt;@andreas_zaras&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The key is that you need to "promote" the data table so that it has "global" scope, which enables you to access it from different SAS Viya Applications such as Model Studio. Please see my answer to this in another thread:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Studio/Data-does-not-appear-in-in-SAS-Viya/m-p/737535#M9944" target="_blank"&gt;https://communities.sas.com/t5/SAS-Studio/Data-does-not-appear-in-in-SAS-Viya/m-p/737535#M9944&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does that solve your issue? If not, please let me know.&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;
&lt;P&gt;-Brian&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 16:25:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/SAS-Viya-for-Learners-Create-data-sets-throgh-datalines/m-p/752117#M8785</guid>
      <dc:creator>BrianGaines</dc:creator>
      <dc:date>2021-07-05T16:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Viya for Learners - Create data sets throgh datalines</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-Viya-for-Learners-Create-data-sets-throgh-datalines/m-p/752126#M8786</link>
      <description>Hi Brian,&lt;BR /&gt;&lt;BR /&gt;Thanks for your answer. I tried to pormote "public", that was not feasible, but i promoted the cas librabry entitled 'academic' and i could see its contents in Model Studio!&lt;BR /&gt;&lt;BR /&gt;Thanks very much,&lt;BR /&gt;&lt;BR /&gt;Andreas</description>
      <pubDate>Mon, 05 Jul 2021 16:56:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/SAS-Viya-for-Learners-Create-data-sets-throgh-datalines/m-p/752126#M8786</guid>
      <dc:creator>andreas_zaras</dc:creator>
      <dc:date>2021-07-05T16:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Viya for Learners - Create data sets throgh datalines</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-Viya-for-Learners-Create-data-sets-throgh-datalines/m-p/752334#M8789</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/3045"&gt;@andreas_zaras&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm glad to hear that it's working now! Thanks for letting me know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, you are technically promoting the &lt;EM&gt;data table&lt;/EM&gt; to have global scope (so it is accessible across different CAS sessions, which enables you to use it in different Viya applications) instead of session scope (accessible only in that specific CAS session), but the CAS library itself is not being promoted. Just wanted to let you know for your own knowledge because I know that it took me a little while to wrap my head around this sort of stuff when I first started to use Viya.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Brian&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 15:05:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/SAS-Viya-for-Learners-Create-data-sets-throgh-datalines/m-p/752334#M8789</guid>
      <dc:creator>BrianGaines</dc:creator>
      <dc:date>2021-07-06T15:05:57Z</dc:date>
    </item>
  </channel>
</rss>

