<?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: %SYSLPUT in a macro in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98099#M20733</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actualy my problem is that I cant mask %syslput expression from normal execution. I have to execute %syslput expression in macro execution period. The note about this issue in SAS support says to use %NRSTR , but it doesnt work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Oct 2012 11:43:07 GMT</pubDate>
    <dc:creator>Selcuk</dc:creator>
    <dc:date>2012-10-18T11:43:07Z</dc:date>
    <item>
      <title>%SYSLPUT in a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98085#M20719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I try to connect remote session via rsubmit and I need to pass a parameter to remote session using %syslput. But I have to do it in a macro.&lt;/P&gt;&lt;P&gt;So I have read a problem note in support SAS (&lt;A href="http://support.sas.com/kb/47/072.html" title="http://support.sas.com/kb/47/072.html"&gt;http://support.sas.com/kb/47/072.html&lt;/A&gt;) , it recommends to use %nrstr expression. But when I use&lt;/P&gt;&lt;P&gt;%nrstr I get a message like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;macro &amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro master_test(papa);&lt;/P&gt;&lt;P&gt;&amp;nbsp; %put ########### Construction type is &amp;amp;papa ###########;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; libname consdata '.....\CONSTRUCTION_DATA';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; options autosignon=yes sascmd='sas -nosyntaxcheck -autoexec "C:\......\autoexec.sas"';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; %NRSTR(%syslput _global_/like='papa' remote=EXTRCTN);&lt;/P&gt;&lt;P&gt;&amp;nbsp; rsubmit&amp;nbsp; process=EXTRCTN wait=yes persist=no;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; options autosignon=yes notes sascmd='sas -nosyntaxcheck -autoexec "C:\........\autoexec_for_MASTER.sas"';&lt;/P&gt;&lt;P&gt;&amp;nbsp; %let e_construction_type=&amp;amp;papa;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; %NRSTR(%syslput _global_/like='e_construction_type' remote=EUSD);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rsubmit&amp;nbsp; process=EUSD wait=no persist=no ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data a;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a=45;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endrsubmit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; waitfor _all_ EUSD;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; endrsubmit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 14:58:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98085#M20719</guid>
      <dc:creator>Selcuk</dc:creator>
      <dc:date>2012-10-17T14:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: %SYSLPUT in a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98086#M20720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I haven't used SAS/Connect in many years, so these are mostly guesses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you take the code out of the macro, does it work?&amp;nbsp; (I'm hoping the answer is no)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noticed a line in the docs for %syslput:&lt;/P&gt;&lt;PRE&gt;"To use %SYSLPUT, you must have initiated a link between a local SAS session or client and a remote SAS session or server using the SIGNON command or SIGNON statement. For more information, see the documentation for SAS/CONNECT software."
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see you have the autosignon option, which is honored by the rsubmit statement.&amp;nbsp; Maybe %syslput can't honor the autosignon, so it doesn't know there is a remote session to write to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Q.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 17:25:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98086#M20720</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2012-10-17T17:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: %SYSLPUT in a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98087#M20721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately it works out of the macro block&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 17:46:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98087#M20721</guid>
      <dc:creator>Selcuk</dc:creator>
      <dc:date>2012-10-17T17:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: %SYSLPUT in a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98088#M20722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another wild guess would be to %unqoute it:&lt;/P&gt;&lt;PRE&gt; %unquote(%NRSTR(%syslput _global_/like='papa' remote=EXTRCTN));


&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 18:06:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98088#M20722</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2012-10-17T18:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: %SYSLPUT in a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98089#M20723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please double check and look-up examples from either the on-line help, or the SAS/Connect User Guide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use %SYSLPUT on it's own. You don't need to wrap it inside %NRSTR!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have always used it like this&lt;/P&gt;&lt;P&gt;%syslput &amp;lt;remote macro variable name&amp;gt;&amp;nbsp; = [some value | &amp;amp;&amp;lt;local macro variable name&amp;gt;] /remote=&amp;lt;Remote host Name&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 18:19:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98089#M20723</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2012-10-17T18:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: %SYSLPUT in a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98090#M20724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where did you define the macro variable as GLOBAL?&amp;nbsp; The first reference I see to &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;e_construction_type&lt;/SPAN&gt; is inside the macro definition.&lt;/P&gt;&lt;P&gt;Try this sample program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%macro test;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; %local mvar;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; %let mvar=local value;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; %syslput _global_ /like='mvar' ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%mend test;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%let mvar=global value;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%test;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;rsubmit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; %put mvar="&amp;amp;mvar";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;endrsubmit;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 20:01:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98090#M20724</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-10-17T20:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: %SYSLPUT in a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98091#M20725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Quentin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx for your reply , I hoped that your recommendation would be useful but it didn't... Below the code and you can see the error log on the bottom.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro master_test(papa);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; options autosignon=yes sascmd='sas -nosyntaxcheck -autoexec "C:\....\autoexec_for_MASTER.sas"';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; %unquote(%NRSTR(%syslput _global_/like='papa' remote=EXTRCTN));&lt;/P&gt;&lt;P&gt;&amp;nbsp; rsubmit&amp;nbsp; process=EXTRCTN wait=yes persist=no;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; options autosignon=yes notes sascmd='sas -nosyntaxcheck -autoexec "C:\....\autoexec_for_MASTER.sas"';&lt;/P&gt;&lt;P&gt;&amp;nbsp; %let e_construction_type=&amp;amp;papa;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; %unquote(%NRSTR(%syslput _global_/like='e_construction_type' remote=EUSD));&lt;/P&gt;&lt;P&gt;&amp;nbsp; rsubmit&amp;nbsp; process=EUSD wait=no persist=no;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data a;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a=&amp;amp;e_construction_type;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp; endrsubmit;&lt;/P&gt;&lt;P&gt;&amp;nbsp; waitfor _all_ EUSD;&lt;/P&gt;&lt;P&gt;&amp;nbsp; endrsubmit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: Remote signon to EXTRCTN commencing (SAS Release 9.03.01M1P110211).&lt;/P&gt;&lt;P&gt;NOTE: Unable to open SASUSER.PROFILE. WORK.PROFILE will be opened instead.&lt;/P&gt;&lt;P&gt;NOTE: All profile changes will be lost at the end of the session.&lt;/P&gt;&lt;P&gt;NOTE: Copyright (c) 2002-2010 by SAS Institute Inc., Cary, NC, USA.&lt;/P&gt;&lt;P&gt;NOTE: SAS (r) Proprietary Software 9.3 (TS1M1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Licensed to ############., Site ########.&lt;/P&gt;&lt;P&gt;NOTE: This session is executing on the X64_S08R2&amp;nbsp; platform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: Updated analytical products:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAS/STAT 9.3_M1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: SAS initialization used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.09 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.10 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: AUTOEXEC processing beginning; file is C:\..........................\autoexec_for_MASTER.sas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE PRINTTO used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: AUTOEXEC processing completed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: Remote signon to EXTRCTN complete.&lt;/P&gt;&lt;P&gt;NOTE: Remote submit to EXTRCTN commencing.&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; options autosignon=yes notes sascmd='sas -nosyntaxcheck -autoexec "C:\.................\autoexec_for_MASTER.sas"';&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %unquote(%syslput _global_/like='e_construction_type' remote=EUSD);&lt;/P&gt;&lt;P&gt;ERROR: Unrecognized option to the %SYSLPUT statement.&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rsubmit process=EUSD wait=no persist=no;&lt;/P&gt;&lt;P&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data a;&lt;/P&gt;&lt;P&gt;5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a=&amp;amp;e_construction_type;&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference E_CONSTRUCTION_TYPE not resolved.&lt;/P&gt;&lt;P&gt;6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endrsubmit;&lt;/P&gt;&lt;P&gt;8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; waitfor _all_ EUSD;&lt;/P&gt;&lt;P&gt;NOTE: Remote submit to EXTRCTN complete.&lt;/P&gt;&lt;P&gt;NOTE: Remote signoff from EXTRCTN commencing.&lt;/P&gt;&lt;P&gt;NOTE: Remote signon to EUSD commencing (SAS Release 9.03.01M1P110211).&lt;/P&gt;&lt;P&gt;NOTE: Unable to open SASUSER.PROFILE. WORK.PROFILE will be opened instead.&lt;/P&gt;&lt;P&gt;NOTE: All profile changes will be lost at the end of the session.&lt;/P&gt;&lt;P&gt;NOTE: Copyright (c) 2002-2010 by SAS Institute Inc., Cary, NC, USA.&lt;/P&gt;&lt;P&gt;NOTE: SAS (r) Proprietary Software 9.3 (TS1M1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Licensed to #########, Site ###########.&lt;/P&gt;&lt;P&gt;NOTE: This session is executing on the X64_S08R2&amp;nbsp; platform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: Updated analytical products:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAS/STAT 9.3_M1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: SAS initialization used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.07 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.07 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: AUTOEXEC processing beginning; file is C:\................\autoexec_for_MASTER.sas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE PRINTTO used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: AUTOEXEC processing completed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: Remote signon to EUSD complete.&lt;/P&gt;&lt;P&gt;NOTE: Background remote submit to EUSD in progress.&lt;/P&gt;&lt;P&gt;NOTE: Remote submit to EUSD commencing.&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data a;&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a=&amp;amp;e_construction_type;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference E_CONSTRUCTION_TYPE not resolved.&lt;/P&gt;&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, a numeric constant, a datetime constant, a missing value, INPUT, PUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;WARNING: The data set WORK.A may be incomplete.&amp;nbsp; When this step was stopped there were 0 observations and 2 variables.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: Remote submit to EUSD complete.&lt;/P&gt;&lt;P&gt;NOTE: Remote signoff from EUSD commencing.&lt;/P&gt;&lt;P&gt;NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414&lt;/P&gt;&lt;P&gt;NOTE: The SAS System used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.41 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.21 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: Remote signoff from EUSD complete.&lt;/P&gt;&lt;P&gt;NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414&lt;/P&gt;&lt;P&gt;NOTE: The SAS System used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.00 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.26 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: Remote signoff from EXTRCTN complete.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2012 06:57:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98091#M20725</guid>
      <dc:creator>Selcuk</dc:creator>
      <dc:date>2012-10-18T06:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: %SYSLPUT in a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98092#M20726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ahmed ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;problem isn't %syslput , it works fine , but if you use it in a macro block you will encounter this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this out &amp;gt;&amp;gt;&amp;gt; &lt;A class="jive-link-external-small" href="http://support.sas.com/kb/47/072.html" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0e66ba; background-color: #ffffff;"&gt;http://support.sas.com/kb/47/072.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2012 07:00:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98092#M20726</guid>
      <dc:creator>Selcuk</dc:creator>
      <dc:date>2012-10-18T07:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: %SYSLPUT in a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98093#M20727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to use %syslput in macro block , like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro test;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; %let mvar=5;&lt;/P&gt;&lt;P&gt;&amp;nbsp; %syslput _global_ /like='mvar' ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rsubmit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %put mvar="&amp;amp;mvar";&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endrsubmit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%mend test;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%test;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2012 07:03:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98093#M20727</guid>
      <dc:creator>Selcuk</dc:creator>
      <dc:date>2012-10-18T07:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: %SYSLPUT in a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98094#M20728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks to me like you have a 'race condition', ie statements are being executed out of order with respect to which remote session you wish to connect to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;NOTE: Remote submit to EXTRCTN commencing.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; options autosignon=yes notes sascmd='sas -nosyntaxcheck -autoexec "C:\.................\autoexec_for_MASTER.sas"';&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %unquote(%syslput _global_/like='e_construction_type' remote=EUSD);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;ERROR: Unrecognized option to the %SYSLPUT statement.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;System has connected to &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;EXTRCTN&lt;/SPAN&gt; but not yet to &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;EUSD&lt;/SPAN&gt; hence the option &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;remote=EUSD&lt;/SPAN&gt; is not recognised.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;You may need to rearrange the macro to have explicit signons to each remote before using %syslput.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2012 07:26:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98094#M20728</guid>
      <dc:creator>RichardinOz</dc:creator>
      <dc:date>2012-10-18T07:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: %SYSLPUT in a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98095#M20729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that problem isn't that. Because same code works fine when it is not contained by %macro %mend block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another point is within the macro block SAS start to read lines as a macro but when it see the %SYSLPUT expression it starts to execute the code immediately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But still if you can give me a sample using explicit signon I try with pleasure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2012 07:40:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98095#M20729</guid>
      <dc:creator>Selcuk</dc:creator>
      <dc:date>2012-10-18T07:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: %SYSLPUT in a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98096#M20730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems clear to me from the log that the connection to &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;EXTRCTN&lt;/SPAN&gt; happens relatively quickly but the&lt;/P&gt;&lt;P&gt;connection to &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;EUS&lt;/SPAN&gt;D takes longer.&amp;nbsp; The first %syslput statement appears to have executed successfully. &lt;/P&gt;&lt;P&gt;Meanwhile the second %sylput statement (with remote=EUSD) appears to have been executed locally before the connection was complete.&amp;nbsp; I think you need some statement to force the connection before the %syslput is executed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have access to a SAS environment with multiple remote sessions so this is my best guess: place dummy rsubmit statements before &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%syslput&lt;/SPAN&gt; commands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%macro master_test(papa);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; options autosignon=yes sascmd='sas -nosyntaxcheck -autoexec "C:\....\autoexec_for_MASTER.sas"';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; rsubmit&amp;nbsp; process=EXTRCTN wait=yes ;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; endrsubmit ;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; %unquote(%NRSTR(%syslput _global_/like='papa' remote=EXTRCTN));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; options autosignon=yes notes sascmd='sas -nosyntaxcheck -autoexec "C:\....\autoexec_for_MASTER.sas"';&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; %let e_construction_type=&amp;amp;papa;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; rsubmit&amp;nbsp; process=&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;EUSD&lt;/SPAN&gt; wait=yes ;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; endrsubmit ;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; %unquote(%NRSTR(%syslput _global_/like='e_construction_type' remote=EUSD));&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; rsubmit&amp;nbsp; process=EUSD wait=no persist=no;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data a;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a=&amp;amp;e_construction_type;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; endrsubmit;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; waitfor _all_ EUSD;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; endrsubmit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%mend;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2012 10:23:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98096#M20730</guid>
      <dc:creator>RichardinOz</dc:creator>
      <dc:date>2012-10-18T10:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: %SYSLPUT in a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98097#M20731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still looks like you are trying to use SYSLPUT to copy the value of GLOBAL macro variable.&amp;nbsp; The only definition of MVAR is within the macro TEST so it will not by in the GLOBAL symbol table.&amp;nbsp; Try adding a %GLOBAL MVAR; statement before the %LET statement in your test macro.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2012 11:15:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98097#M20731</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-10-18T11:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: %SYSLPUT in a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98098#M20732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I use %global get the error message below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: Attempt to %GLOBAL a name (PAPA) which exists in a local environment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2012 11:38:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98098#M20732</guid>
      <dc:creator>Selcuk</dc:creator>
      <dc:date>2012-10-18T11:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: %SYSLPUT in a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98099#M20733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actualy my problem is that I cant mask %syslput expression from normal execution. I have to execute %syslput expression in macro execution period. The note about this issue in SAS support says to use %NRSTR , but it doesnt work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2012 11:43:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98099#M20733</guid>
      <dc:creator>Selcuk</dc:creator>
      <dc:date>2012-10-18T11:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: %SYSLPUT in a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98100#M20734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think Tom is on the right track.&amp;nbsp;&amp;nbsp; I somehow overlooked that you were trying to push &amp;amp;PAPA to the remote session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;Papa is a local macro variable, because it is a parameter to %master_test.&amp;nbsp; Which is why SAS complains when you tried to declare it as global.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you code:&lt;/P&gt;&lt;P&gt;&amp;nbsp; %NRSTR(%syslput _global_/like='papa' remote=EXTRCTN);&lt;/P&gt;&lt;P&gt;You are having to look for global macro var named PAPA, which doesnt exist. So I would try:&lt;/P&gt;&lt;P&gt;&amp;nbsp; %NRSTR(%syslput _local_/like='papa' remote=EXTRCTN);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;e_construction type is also local, so would try making the change to _local_ on both %syslput statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2012 14:42:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98100#M20734</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2012-10-18T14:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: %SYSLPUT in a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98101#M20735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my testing it looks like it is the RSUBMIT and ENDRSUBMIT statements that SAS 9.3 is processing out of order.&lt;/P&gt;&lt;P&gt;It is executing the RSUBMIT statement while it is compiling the macro.&lt;/P&gt;&lt;P&gt;Here is the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;signoff;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%let mvar=Before Compile ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%macro test;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; %syslput _global_ / like="mvar" ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; rsubmit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; %put mvar=|&amp;amp;mvar|;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; %put mvar=|%nrstr(&amp;amp;mvar)|;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; endrsubmit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%mend test;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the resulting LOG.&amp;nbsp; Notice that even the line numbers for the lines of the macro code are counting wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;166&amp;nbsp; signoff;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NOTE: Remote signoff from PAL commencing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NOTE: The SAS System used:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1:45.26&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.21 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NOTE: Remote signoff from PAL complete.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;167&amp;nbsp; %let mvar=Before Compile ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;168&amp;nbsp; %macro test;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;169&amp;nbsp;&amp;nbsp; %syslput _global_ / like="mvar" ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;170&amp;nbsp;&amp;nbsp; rsubmit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ERROR: A link must be established by executing the SIGNON command before you can communicate with&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; PAL.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;ERROR: Remote submit to PAL canceled.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;171&amp;nbsp; %mend test;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;172&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2012 16:23:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98101#M20735</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-10-18T16:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: %SYSLPUT in a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98102#M20736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tom-&lt;/P&gt;&lt;P&gt;I think what you are seeing is the original problem that OP noted and linked to the ts note.&lt;/P&gt;&lt;P&gt;It's the %syslput that is trying to communicate with the remote session when the macro compiles.&lt;/P&gt;&lt;P&gt;If you wrap that in %nrstr() as in his first post, that error goes away.&amp;nbsp; At least in my quick test.&lt;/P&gt;&lt;P&gt;I'm still thinking changing to _local_ will help. But I've been wrong before. And several times in this thread...&lt;/P&gt;&lt;P&gt;---Q.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2012 16:40:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98102#M20736</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2012-10-18T16:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: %SYSLPUT in a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98103#M20737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks likes this new format of the %SYSLPUT command is causing the macro compiler to try and execute the RSUBMIT command while it is compiling the macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;285&amp;nbsp; %let mvar=Before Compile ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;286&amp;nbsp; %macro test;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;287&amp;nbsp;&amp;nbsp; %syslput _global_ / like='mvar' remote=fred ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;288&amp;nbsp;&amp;nbsp; rsubmit remote=pal;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;ERROR: A link must be established by executing the SIGNON command before you can communicate with&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PAL.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;ERROR: Remote submit to PAL canceled.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;289&amp;nbsp; %mend test;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;290&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;291&amp;nbsp; %let mvar=After compile;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;292&amp;nbsp; %test;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;ERROR: A link must be established by executing the SIGNON command before you can communicate with&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FRED.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;The solution is to use the OLD style of %SYSLPUT.&amp;nbsp; You might need to test to see if it will automatically start the remote session.&amp;nbsp; But if not then just add the rsubmit code suggested by someone above to trigger the auto connect.&amp;nbsp; Or explicitly connect before calling the macro. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%let mvar=Before Compile ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;**** Define the macro **** ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%macro test;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; %syslput mvar=%superq(mvar) /remote=pal ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; rsubmit remote=pal;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; %put mvar=|&amp;amp;mvar|;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; endrsubmit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%mend test;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;**** connect to remote ****;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%rsignon(pal);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%let mvar=After compile;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%test;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2012 16:53:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98103#M20737</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-10-18T16:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: %SYSLPUT in a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98104#M20738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Selcuk,&lt;/P&gt;&lt;P&gt;Wondering if you arrived at a satisfactory solution?&lt;/P&gt;&lt;P&gt;--Q.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 16:44:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SYSLPUT-in-a-macro/m-p/98104#M20738</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2012-10-25T16:44:53Z</dc:date>
    </item>
  </channel>
</rss>

