<?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: Macro resolution on remote server in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-resolution-on-remote-server/m-p/48556#M10032</link>
    <description>Here's an excerpt from the doc.  Hope this helps.&lt;BR /&gt;
&lt;BR /&gt;
The %SYSRPUT statement is submitted with SAS/CONNECT to a remote host to retrieve the value of a macro variable stored on the remote host. %SYSRPUT assigns that value to a macro variable on the local host. %SYSRPUT is similar to the %LET macro statement because it assigns a value to a macro variable. However, %SYSRPUT assigns a value to a variable on the local host, not on the remote host where the statement is processed. The %SYSRPUT statement places the macro variable into the global symbol table in the client session.</description>
    <pubDate>Mon, 13 Dec 2010 14:01:52 GMT</pubDate>
    <dc:creator>PatrickG</dc:creator>
    <dc:date>2010-12-13T14:01:52Z</dc:date>
    <item>
      <title>Macro resolution on remote server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-resolution-on-remote-server/m-p/48554#M10030</link>
      <description>Hi,&lt;BR /&gt;
  I upload data from PC session to Mainframe.The dataset name changes everymonth based on the datevalue that is created in the preceeding steps.&lt;BR /&gt;
Say for instance for current month the dataset to be uploaded is TMP1012.&lt;BR /&gt;
Next month it becomes TMP1101.I use a macro variable TMP&amp;amp;value.But it doesnt seem to resolve.I know %sysrput will do the work.But i dont know how to use it.</description>
      <pubDate>Mon, 13 Dec 2010 00:38:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-resolution-on-remote-server/m-p/48554#M10030</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2010-12-13T00:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Macro resolution on remote server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-resolution-on-remote-server/m-p/48555#M10031</link>
      <description>It's not clear from your explanation if you are defining a macro variable on your PC and want it to resolve on the mainframe or vice versa. If it is the first case then you need to use %SYSRPUT on your PC (having already signed on to your mainframe SAS session):&lt;BR /&gt;
&lt;BR /&gt;
%let local_var = example;&lt;BR /&gt;
&lt;BR /&gt;
%SYSRPUT remote_var = &amp;amp;local_var / remote = sessionid;&lt;BR /&gt;
&lt;BR /&gt;
The macro variable remote_var should then resolve in your mainframe session.</description>
      <pubDate>Mon, 13 Dec 2010 01:53:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-resolution-on-remote-server/m-p/48555#M10031</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2010-12-13T01:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Macro resolution on remote server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-resolution-on-remote-server/m-p/48556#M10032</link>
      <description>Here's an excerpt from the doc.  Hope this helps.&lt;BR /&gt;
&lt;BR /&gt;
The %SYSRPUT statement is submitted with SAS/CONNECT to a remote host to retrieve the value of a macro variable stored on the remote host. %SYSRPUT assigns that value to a macro variable on the local host. %SYSRPUT is similar to the %LET macro statement because it assigns a value to a macro variable. However, %SYSRPUT assigns a value to a variable on the local host, not on the remote host where the statement is processed. The %SYSRPUT statement places the macro variable into the global symbol table in the client session.</description>
      <pubDate>Mon, 13 Dec 2010 14:01:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-resolution-on-remote-server/m-p/48556#M10032</guid>
      <dc:creator>PatrickG</dc:creator>
      <dc:date>2010-12-13T14:01:52Z</dc:date>
    </item>
  </channel>
</rss>

