<?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: Change Server using SAS Code in 9.4 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Change-Server-using-SAS-Code-in-9-4/m-p/891621#M352218</link>
    <description>&lt;P&gt;With EG connection profiles you are unfortunately stuck with that remote SAS server instance and can't change it in SAS code. However if you have SAS/CONNECT licensed, you can SIGNON to a second SAS server session from your existing one and that can be any defined SAS server instance. Run this program to confirm if SAS/CONNECT is available to you:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc product_status;
run;

proc setinit:
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Why don't you talk to your SAS administrator about the PROC HTTP connection problem to see if it can be fixed?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Aug 2023 00:36:05 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2023-08-30T00:36:05Z</dc:date>
    <item>
      <title>Change Server using SAS Code in 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-Server-using-SAS-Code-in-9-4/m-p/891619#M352217</link>
      <description>&lt;P&gt;I have two servers - SasApp1 &amp;amp; SASApp2, and they sit on Linux.&amp;nbsp; I can select the server I want to connect to with SAS EG and run the SAS code.&amp;nbsp; Can I do it with SAS code instead of choosing a server through the SAS EG options?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the pseudocode of what I'm after:&lt;/P&gt;&lt;PRE&gt;%IF &amp;amp;SomeMacroToIdentifyServer = SASApp1 %THEN %DO;
     .....Deselect/Disconnect from SASApp1.....
     .....Select/Connect to SASApp2.....
     .....Run data/Proc steps.....
     .....Deselect/Disconnect from SASApp2.....
     .....Select/Reconnect to SASApp1.....
%END;
%ELSE DO;
     .....Run data/Proc steps.....
%END;&lt;/PRE&gt;&lt;P&gt;This is because SASApp2 has the correct configurations for PROC HTTP calls to SharePoint, and SASApp1 won't allow the connection for reasons I don't know.&amp;nbsp; However, most people use SASApp1 for all of their SAS processes.&amp;nbsp; If there were a programmatic way to switch between the two, we wouldn't have to worry about halting our processes that run in SASApp1 to change to SASApp2 manually and then running the rest of the process involving PROC HTTP.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 00:23:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-Server-using-SAS-Code-in-9-4/m-p/891619#M352217</guid>
      <dc:creator>Stamp0307</dc:creator>
      <dc:date>2023-08-30T00:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Change Server using SAS Code in 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-Server-using-SAS-Code-in-9-4/m-p/891621#M352218</link>
      <description>&lt;P&gt;With EG connection profiles you are unfortunately stuck with that remote SAS server instance and can't change it in SAS code. However if you have SAS/CONNECT licensed, you can SIGNON to a second SAS server session from your existing one and that can be any defined SAS server instance. Run this program to confirm if SAS/CONNECT is available to you:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc product_status;
run;

proc setinit:
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Why don't you talk to your SAS administrator about the PROC HTTP connection problem to see if it can be fixed?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 00:36:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-Server-using-SAS-Code-in-9-4/m-p/891621#M352218</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-08-30T00:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Change Server using SAS Code in 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-Server-using-SAS-Code-in-9-4/m-p/892624#M352557</link>
      <description>Sorry for the delay; I've been out of town. I do have SAS/CONNECT. I've seen the SIGNON method, but it's been a while. I reached out to my admin and hoped for a good turnout.</description>
      <pubDate>Mon, 04 Sep 2023 19:36:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-Server-using-SAS-Code-in-9-4/m-p/892624#M352557</guid>
      <dc:creator>Stamp0307</dc:creator>
      <dc:date>2023-09-04T19:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Change Server using SAS Code in 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-Server-using-SAS-Code-in-9-4/m-p/892626#M352558</link>
      <description>&lt;P&gt;That's good news. The idea would be to connect from EG to your primary SAS server. You then use SIGNON to start a session on the other SAS server and use RSUBMIT blocks to run code there. Something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;signon Server2;

rsubmit;

&amp;lt;code to run on Server2&amp;gt;

endrsubmit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Sep 2023 19:59:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-Server-using-SAS-Code-in-9-4/m-p/892626#M352558</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-09-04T19:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Change Server using SAS Code in 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-Server-using-SAS-Code-in-9-4/m-p/893463#M352966</link>
      <description>Ok, I remember those with the rsubmit and endrsubmit. I will check it out. Thank you!</description>
      <pubDate>Sat, 09 Sep 2023 22:33:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-Server-using-SAS-Code-in-9-4/m-p/893463#M352966</guid>
      <dc:creator>Stamp0307</dc:creator>
      <dc:date>2023-09-09T22:33:15Z</dc:date>
    </item>
  </channel>
</rss>

