<?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: Move SAS Macro variable from Local session to Server Session in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Move-SAS-Macro-variable-from-Local-session-to-Server-Session/m-p/595000#M15717</link>
    <description>&lt;P&gt;You use the wrong port; 8561 is the Metadata Server. You need to specify the port on which the Connect Spawner is listening. This can be retrieved with the SAS Management Console.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Oct 2019 10:14:15 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2019-10-09T10:14:15Z</dc:date>
    <item>
      <title>Move SAS Macro variable from Local session to Server Session</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Move-SAS-Macro-variable-from-Local-session-to-Server-Session/m-p/594790#M15692</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have within the same SAS EG project two programs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One working locally, the latter working on a unix server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would declare the macro variables just once in the first program (the local one) and then being able to import the macro variables within the server session too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I searched on the web but I got not straight answer to this topic. Any idea about how I should proceed?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bests&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 16:00:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Move-SAS-Macro-variable-from-Local-session-to-Server-Session/m-p/594790#M15692</guid>
      <dc:creator>dcortell</dc:creator>
      <dc:date>2019-10-08T16:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Move SAS Macro variable from Local session to Server Session</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Move-SAS-Macro-variable-from-Local-session-to-Server-Session/m-p/594794#M15694</link>
      <description>&lt;P&gt;The only way this would be possible (in a straightforward way) would be to use SAS/CONNECT if it was licensed and installed on both platforms, but then you would start the server session from the local session, and not from EG itself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively, you could store the name/value pairs for macrovars in a dataset, move that to the server (Copy Files or Upload Dataset task), and recreate the macrovars in a data step.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 16:11:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Move-SAS-Macro-variable-from-Local-session-to-Server-Session/m-p/594794#M15694</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-10-08T16:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Move SAS Macro variable from Local session to Server Session</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Move-SAS-Macro-variable-from-Local-session-to-Server-Session/m-p/594809#M15696</link>
      <description>You can look at %SYSLPUT/%SYSRPUT() which works on Foundation SAS. Not sure how it will work within EG where you're working locally and on the server though.</description>
      <pubDate>Tue, 08 Oct 2019 16:51:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Move-SAS-Macro-variable-from-Local-session-to-Server-Session/m-p/594809#M15696</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-10-08T16:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Move SAS Macro variable from Local session to Server Session</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Move-SAS-Macro-variable-from-Local-session-to-Server-Session/m-p/594987#M15710</link>
      <description>&lt;P&gt;Tried something like this in the local program:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let unixsrv= misci01p.unx.xxxx.com 8561; 
 
options comamid=tcp;
 
signon unixsrv user='' password=""; 
 
options remote=unixsrv; 

%syslput start_dt=&amp;amp;start_dt; 
 
rsubmit;
 
endrsubmit;

signoff unixsrv;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But then It seems not working, as the signon is not happening. Any idea if it is a code matter?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 09:19:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Move-SAS-Macro-variable-from-Local-session-to-Server-Session/m-p/594987#M15710</guid>
      <dc:creator>dcortell</dc:creator>
      <dc:date>2019-10-09T09:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Move SAS Macro variable from Local session to Server Session</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Move-SAS-Macro-variable-from-Local-session-to-Server-Session/m-p/594991#M15711</link>
      <description>&lt;P&gt;Please post the log from that code (use the {i} button for posting logs).&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 09:25:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Move-SAS-Macro-variable-from-Local-session-to-Server-Session/m-p/594991#M15711</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-10-09T09:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Move SAS Macro variable from Local session to Server Session</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Move-SAS-Macro-variable-from-Local-session-to-Server-Session/m-p/594996#M15714</link>
      <description>&lt;PRE&gt;ERROR: A communication subsystem partner link setup request failure has occurred.
ERROR: TCP link establishment failed.
2                                                          The SAS System                           11:08 Wednesday, October 9, 2019

ERROR: Remote signon to UNIXSRV canceled.
3                                                          The SAS System                           11:08 Wednesday, October 9, 2019

1          ;*';*";*/;quit;run;
2          OPTIONS PAGENO=MIN;
3          %LET _CLIENTTASKLABEL='import';
4          %LET _CLIENTPROCESSFLOWNAME='Process Flow';
5          %LET _CLIENTPROJECTPATH='C:\Users\spndac\OneDrive -
5        ! SAS\SAS_EG_projects\Attribution_Model_112018\code\CallMarkov_local_Aggr_Simulation_BK.egp';
6          %LET _CLIENTPROJECTPATHHOST='spnb147b';
7          %LET _CLIENTPROJECTNAME='CallMarkov_local_Aggr_Simulation_BK.egp';
8          %LET _SASPROGRAMFILE='';
9          %LET _SASPROGRAMFILEHOST='';
10         
11         ODS _ALL_ CLOSE;
12         OPTIONS DEV=PNG;
13         GOPTIONS XPIXELS=0 YPIXELS=0;
14         FILENAME EGSR TEMP;
15         ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR
16             STYLE=HTMLBlue
17             STYLESHEET=(URL="file:///C:/Program%20Files%20(x86)/SASHome/x86/SASEnterpriseGuide/7.1/Styles/HTMLBlue.css")
18             NOGTITLE
19             NOGFOOTNOTE
20             GPATH=&amp;amp;sasworklocation
SYMBOLGEN:  Macro variable SASWORKLOCATION resolves to 
            "C:\Users\spndac\AppData\Roaming\SAS\EnterpriseGuide\EGTEMP\SEG-19212-2afa42b0\contents\SAS Temporary 
            Files\_TD7764_spnb147b_\Prc2/"
21             ENCODING=UTF8
22             options(rolap="on")
23         ;
NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR
24         
25         GOPTIONS ACCESSIBLE;
SYMBOLGEN:  Macro variable START_DT resolves to "02Jul2018"d
26         %put &amp;amp;start_dt;
"02Jul2018"d
27         
28         %let unixsrv= misci01p.unx.xxxx.com 8561;
29         
30         signon unixsrv user=xxxx password=XXXXXXXXXXXX;
NOTE: Remote signon to UNIXSRV commencing (SAS Release 9.04.01M6P110718).&lt;/PRE&gt;&lt;P&gt;Attached the log with errors&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 09:51:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Move-SAS-Macro-variable-from-Local-session-to-Server-Session/m-p/594996#M15714</guid>
      <dc:creator>dcortell</dc:creator>
      <dc:date>2019-10-09T09:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Move SAS Macro variable from Local session to Server Session</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Move-SAS-Macro-variable-from-Local-session-to-Server-Session/m-p/595000#M15717</link>
      <description>&lt;P&gt;You use the wrong port; 8561 is the Metadata Server. You need to specify the port on which the Connect Spawner is listening. This can be retrieved with the SAS Management Console.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 10:14:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Move-SAS-Macro-variable-from-Local-session-to-Server-Session/m-p/595000#M15717</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-10-09T10:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Move SAS Macro variable from Local session to Server Session</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Move-SAS-Macro-variable-from-Local-session-to-Server-Session/m-p/595012#M15721</link>
      <description>&lt;P&gt;Switched to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put &amp;amp;start_dt;

%let unixsrv= misci01p.unx.sas.com 8581; 
 
options comamid=tcp remote=unixsrv;
 
signon unixsrv username='spndac' password="Harker321!"; 
 
%syslput start_dt=&amp;amp;start_dt; 
 
rsubmit;

endrsubmit;

signoff unixsrv;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Which It seems should be the spawner port. However, the code run without an end.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could be less problematic to create a table on the local session with the macro values, and export it to the server session? But again, how to export that&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 11:22:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Move-SAS-Macro-variable-from-Local-session-to-Server-Session/m-p/595012#M15721</guid>
      <dc:creator>dcortell</dc:creator>
      <dc:date>2019-10-09T11:22:02Z</dc:date>
    </item>
  </channel>
</rss>

