<?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: How to transfer local macro varibles to remote server macro variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-transfer-local-macro-varibles-to-remote-server-macro/m-p/264815#M52000</link>
    <description>&lt;P&gt;Any time I get a macro failure about values I try running OPTIONS MPRINT SYMBOLGEN; before the lines that seem to cause the error to see what the values of variables may be resolving to.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The warning message appears to say that a value is not currently assigned to your END_OF_THIS_WEEK variable. the options may confirm that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Apr 2016 15:37:45 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-04-19T15:37:45Z</dc:date>
    <item>
      <title>How to transfer local macro varibles to remote server macro variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-transfer-local-macro-varibles-to-remote-server-macro/m-p/264800#M51994</link>
      <description>&lt;P&gt;Dear SAS community contributors,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I store weekend '20160409' into local macro variable END_OF_THIS_WEEK &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and '01OCT2015'd into local macro variable START_FISCAL_YEAR.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I want to remote submit two macro varibles above to server to run SQL &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; but it failed. &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;/******* my code:&amp;nbsp; ***********/&lt;BR /&gt;&lt;BR /&gt;signon rlink;&lt;BR /&gt;libname rwork slibref=work server=prod;&lt;BR /&gt;&lt;BR /&gt;rsubmit;&lt;BR /&gt;&lt;BR /&gt;%SYSLPUT&amp;nbsp; END_WEEK_REMOTE = &amp;amp;END_OF_THIS_WEEK ;&lt;BR /&gt;%SYSLPUT&amp;nbsp; START_FY_REMOTE = &amp;amp;START_FISCAL_YEAR ; &lt;BR /&gt;&amp;nbsp;.....&lt;BR /&gt;proc sql;&lt;BR /&gt;......&lt;BR /&gt;&lt;BR /&gt;endrsubmit;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;/*** error log ***/&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; signon rlink;&lt;BR /&gt;NOTE: A link to PROD has been previously established. SIGNON is not necessary.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; libname rwork slibref=work server=prod;&lt;BR /&gt;NOTE: Libref RWORK was successfully assigned as follows:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Engine:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REMOTE&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Physical Name: /saswork/SAS_work00810012_imapsrac1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rsubmit;&lt;BR /&gt;NOTE: Remote submit to PROD commencing.&lt;BR /&gt;WARNING: Apparent symbolic reference END_OF_THIS_WEEK not resolved.&lt;BR /&gt;ERROR: A link must be established by executing the SIGNON command before you can communicate&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; with UNKNOWN.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %SYSLPUT&amp;nbsp; END_WEEK_REMOTE = &amp;amp;END_OF_THIS_WEEK ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %SYSLPUT&amp;nbsp; START_FY_REMOTE = &amp;amp;START_FISCAL_YEAR ;&lt;BR /&gt;WARNING: Apparent symbolic reference START_FISCAL_YEAR not resolved.&lt;BR /&gt;ERROR: A link must be established by executing the SIGNON command before you can communicate&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; with UNKNOWN.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I use PC SAS 9.3 and SAS/Connect to unix server.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Do you have any suggestion to solve this issue ? Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; Regards,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; William&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2016 15:09:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-transfer-local-macro-varibles-to-remote-server-macro/m-p/264800#M51994</guid>
      <dc:creator>wtien196838</dc:creator>
      <dc:date>2016-04-19T15:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to transfer local macro varibles to remote server macro variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-transfer-local-macro-varibles-to-remote-server-macro/m-p/264815#M52000</link>
      <description>&lt;P&gt;Any time I get a macro failure about values I try running OPTIONS MPRINT SYMBOLGEN; before the lines that seem to cause the error to see what the values of variables may be resolving to.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The warning message appears to say that a value is not currently assigned to your END_OF_THIS_WEEK variable. the options may confirm that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2016 15:37:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-transfer-local-macro-varibles-to-remote-server-macro/m-p/264815#M52000</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-04-19T15:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to transfer local macro varibles to remote server macro variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-transfer-local-macro-varibles-to-remote-server-macro/m-p/264845#M52008</link>
      <description>Syslput should appear outside the rsubmit block.&lt;BR /&gt;If you need to execute it on the server use sysrput instead. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/connref/67933/HTML/default/viewer.htm#n1bc4zi0lp02ivn1oxn9gc1bsaha.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/connref/67933/HTML/default/viewer.htm#n1bc4zi0lp02ivn1oxn9gc1bsaha.htm&lt;/A&gt;</description>
      <pubDate>Tue, 19 Apr 2016 17:20:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-transfer-local-macro-varibles-to-remote-server-macro/m-p/264845#M52008</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-04-19T17:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to transfer local macro varibles to remote server macro variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-transfer-local-macro-varibles-to-remote-server-macro/m-p/265080#M52066</link>
      <description>&lt;P&gt;Thanks for all replies. I coded as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;filename rlink '&amp;lt;..path&amp;gt;\filename.scr';&lt;BR /&gt;signon rlink;&lt;BR /&gt;libname rwork slibref=work server=prod;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;%syslput _all_ ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;rsubmit;&lt;/P&gt;
&lt;P&gt;.....&lt;/P&gt;
&lt;P&gt;endrsubmit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It works and moves all my LOCAL macro variables to REMOTE macro variables.&lt;/P&gt;
&lt;P&gt;One minor point, the filename links to a "filename.scr" which is pronpt the user to enter user name and password to sign on unix server.&lt;/P&gt;
&lt;P&gt;Is it possible that I hard code inside the code so that the users do not need to interact the screen to enter information ?&lt;/P&gt;
&lt;P&gt;Thanks for your answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 13:03:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-transfer-local-macro-varibles-to-remote-server-macro/m-p/265080#M52066</guid>
      <dc:creator>wtien196838</dc:creator>
      <dc:date>2016-04-20T13:03:05Z</dc:date>
    </item>
  </channel>
</rss>

