<?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: Proc IML does not terminate with R Code in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Proc-IML-does-not-terminate-with-R-Code/m-p/672389#M5215</link>
    <description>&lt;P&gt;A few comments:&lt;/P&gt;
&lt;P&gt;1. Your PROC OPTIONS step does not tell us anything. You need to add the VALUE option to make sure the RLANG option is actually set:&lt;BR /&gt;&lt;STRONG&gt;proc options option=rlang value;&amp;nbsp;run;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;2. SAS does not officially support the Anaconda distribution of R, but I was able to provide some tips and suggestions for another SAS user who wanted to call Anaconda R from SAS. The previous user was using Windows, but see the thread&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/SAS-R-and-Anaconda/m-p/379186#M3653" target="_blank"&gt;https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/SAS-R-and-Anaconda/m-p/379186#M3653&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 26 Jul 2020 11:50:31 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2020-07-26T11:50:31Z</dc:date>
    <item>
      <title>Proc IML does not terminate with R Code</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Proc-IML-does-not-terminate-with-R-Code/m-p/672334#M5213</link>
      <description>&lt;P&gt;Hi folks, &lt;BR /&gt;We've just installed anaconda 2 on our SAS Linux server (running RedHat). After the anaconda installation was completed, &lt;BR /&gt;we tested the R installation through R commands and works fine:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;R version 3.6.1 (2019-07-05) -- "Action of the Toes"&lt;BR /&gt;Copyright (C) 2019 The R Foundation for Statistical Computing&lt;BR /&gt;Platform: x86_64-conda_cos6-linux-gnu (64-bit)&lt;/P&gt;
&lt;P&gt;&amp;gt; print("Hello World")&lt;BR /&gt;[1] "Hello World"&lt;BR /&gt;&amp;gt; R.home()&lt;BR /&gt;[1] "/opt/sas/iml/anaconda2/envs/sas-r-default/lib/R"&lt;BR /&gt;&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;We added the RLANG command and the R_HOME on sasv9.cfg. We verified the settings:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;27 /* rlang set ?*/&lt;BR /&gt;28 proc options option=rlang;&lt;BR /&gt;29 run;&lt;/P&gt;
&lt;P&gt;SAS (r) Proprietary Software Release 9.4 TS1M6&lt;/P&gt;
&lt;P&gt;RLANG Enables SAS to execute R language statements.&lt;BR /&gt;NOTE: PROCEDURE OPTIONS used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;
&lt;P&gt;30 &lt;BR /&gt;31 /* R Home set ? */&lt;BR /&gt;32 data _null_;&lt;BR /&gt;33 R_HOME =sysget("R_HOME");&lt;BR /&gt;34 put R_HOME=;&lt;BR /&gt;35 run;&lt;/P&gt;
&lt;P&gt;R_HOME=/opt/sas/iml/anaconda2/envs/sas-r-default/lib/R&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;After that, we tried to validate if we could call and execute R through SAS EG using:&lt;/P&gt;
&lt;P&gt;proc iml;&lt;BR /&gt;submit /R; &lt;BR /&gt;print("Hello World!")&lt;BR /&gt;endsubmit;&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;But the proc iml does not terminate in the SAS Enterprise Guide and I do not see on the server that an R process was started. &lt;BR /&gt;&lt;BR /&gt;Any Idea?&lt;BR /&gt;&lt;BR /&gt;Kind Regards,&lt;/P&gt;
&lt;P&gt;Klaus&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jul 2020 17:30:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Proc-IML-does-not-terminate-with-R-Code/m-p/672334#M5213</guid>
      <dc:creator>klroesner</dc:creator>
      <dc:date>2020-07-25T17:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Proc IML does not terminate with R Code</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Proc-IML-does-not-terminate-with-R-Code/m-p/672388#M5214</link>
      <description>&lt;P&gt;Calling&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jul 2020 11:30:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Proc-IML-does-not-terminate-with-R-Code/m-p/672388#M5214</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-07-26T11:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Proc IML does not terminate with R Code</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Proc-IML-does-not-terminate-with-R-Code/m-p/672389#M5215</link>
      <description>&lt;P&gt;A few comments:&lt;/P&gt;
&lt;P&gt;1. Your PROC OPTIONS step does not tell us anything. You need to add the VALUE option to make sure the RLANG option is actually set:&lt;BR /&gt;&lt;STRONG&gt;proc options option=rlang value;&amp;nbsp;run;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;2. SAS does not officially support the Anaconda distribution of R, but I was able to provide some tips and suggestions for another SAS user who wanted to call Anaconda R from SAS. The previous user was using Windows, but see the thread&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/SAS-R-and-Anaconda/m-p/379186#M3653" target="_blank"&gt;https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/SAS-R-and-Anaconda/m-p/379186#M3653&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jul 2020 11:50:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Proc-IML-does-not-terminate-with-R-Code/m-p/672389#M5215</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-07-26T11:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Proc IML does not terminate with R Code</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Proc-IML-does-not-terminate-with-R-Code/m-p/672741#M5217</link>
      <description>&lt;P&gt;Thanks Rick for the quick feedback....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1) Output from Proc Options:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;26 /* rlang set ?*/&lt;BR /&gt;27 proc options option=rlang value;&lt;BR /&gt;28 run;&lt;/P&gt;
&lt;P&gt;SAS (r) Proprietary Software Release 9.4 TS1M6&lt;/P&gt;
&lt;P&gt;Option Value Information For SAS Option RLANG&lt;BR /&gt;Value: RLANG&lt;BR /&gt;Scope: SAS Session&lt;BR /&gt;How option value set: Config File&lt;BR /&gt;Config file name:&lt;BR /&gt;/opt/sas/sas1/config/Lev1/SASApp/WorkspaceServer/sasv9_usermods.cfg&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) PATH-Variable&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;We have set the PATH variable in the sasenv_local:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;export PATH=/opt/sas/iml/anaconda2/envs/sas-r-default/bin:$PATH&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;but unfortunately the behaviour is the same.&amp;nbsp;It seems that SAS cannot call R....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 06:26:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Proc-IML-does-not-terminate-with-R-Code/m-p/672741#M5217</guid>
      <dc:creator>klroesner</dc:creator>
      <dc:date>2020-07-28T06:26:40Z</dc:date>
    </item>
  </channel>
</rss>

