<?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 A long macro variable within an rsubmit statement is unexpectedly altered in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/A-long-macro-variable-within-an-rsubmit-statement-is/m-p/22949#M3773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello, Patrick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The local SAS version is 9.1 and local OS is Win XP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The version of SAS on the server is 9.2 - I have been told it's a Windows server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I %put the macro variable to the log, it still appears in the wrong way (with two of the numbers being concatenated). At first, I had used your suggestion of defining the string in several steps, which worked, but was unpretty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating the macro variable locally and pushing it to the server with %syslput seems to work much better. Using that method, I have no visible problems.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Mar 2012 12:44:11 GMT</pubDate>
    <dc:creator>Hedegaard</dc:creator>
    <dc:date>2012-03-06T12:44:11Z</dc:date>
    <item>
      <title>A long macro variable within an rsubmit statement is unexpectedly altered</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-long-macro-variable-within-an-rsubmit-statement-is/m-p/22947#M3771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with a macro variable that SAS changes upon compilation, when I have positioned it inside an rsubmit statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specifically, if I run the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399;"&gt;rsubmit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399;"&gt;%let longStringInSas=70044562 70038118 70000987 70006274 70006876 70009855 70010417 70010502 70010846 70013132 70013741 70017303 70017365 70018846 70018970 70019083 70019999 70020810 70023702 70024663 70027142 70027281 70027650 70029126 70032494 70035989 70037073 70044862 70050145;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399;"&gt;endrsubmit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;then I get the following in the log (which carries over as a mistake to what I'm trying to do):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399;"&gt;10123&amp;nbsp; rsubmit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399;"&gt;NOTE: Remote submit to SASHOST commencing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399;"&gt;13384&amp;nbsp; %let longStringInSas=70044562 70038118 70000987 70006274 70006876 70009855 70010417 70010502 70010846 70013132 70013741 70017303 70017365 70018846 70018970 70019083 70019999 70020810 70023702 70024663 70027142 70027281&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399;"&gt;13384!&amp;nbsp; 70027650 70029126 70032494 70035989&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399;"&gt;13385&amp;nbsp; 7003707370044862 70050145;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399;"&gt;NOTE: Remote submit to SASHOST complete.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Notice how the second to last and third to last numbers are concatenated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I submit the %let statement without including the rsubmit-statements, then the log seems fine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399;"&gt;10124&amp;nbsp; %let longStringInSas=70044562 70038118 70000987 70006274 70006876 70009855 70010417 70010502 70010846 70013132 70013741 70017303 70017365 70018846 70018970 70019083 70019999 70020810 70023702 70024663 70027142 70027281&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399;"&gt;10124!&amp;nbsp; 70027650 70029126 70032494 70035989 70037073 70044862 70050145;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;How come does this work differently depending on whether I use rsubmit or not? And any ideas as to how to make it work within rsubmit?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Kind regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hedegaard.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 10:07:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-long-macro-variable-within-an-rsubmit-statement-is/m-p/22947#M3771</guid>
      <dc:creator>Hedegaard</dc:creator>
      <dc:date>2012-03-06T10:07:51Z</dc:date>
    </item>
    <item>
      <title>A long macro variable within an rsubmit statement is unexpectedly altered</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-long-macro-variable-within-an-rsubmit-statement-is/m-p/22948#M3772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked for me both inside and outside of an rsubmit block with your string (Win7 64bit, SAS 9.2 TS Level 2M3). What SAS version and OS are you using (for both the "local" and remote session?).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you see is a log message. Are you also having missing blanks if you %put the macro variable to the log?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can always create the macro variable locally and then push it to the remote session using %syslput.&lt;/P&gt;&lt;P&gt;Or you could pass the string in several steps, something like&lt;/P&gt;&lt;P&gt;%let longStringInSas=70044562 70038118 70000987 70006274 70006876 70009855;&lt;BR /&gt;%let longStringInSas=&amp;amp;longStringInSas 70010417 70010502 70010846 70013132 70013741;&lt;BR /&gt;%let longStringInSas=&amp;amp;longStringInSas 70017303 70017365 70018846 70018970 70019083;&lt;BR /&gt;%let longStringInSas=&amp;amp;longStringInSas 70019999 70020810 70023702 70024663 70027142;&lt;BR /&gt;%let longStringInSas=&amp;amp;longStringInSas 70027281 70027650 70029126 70032494 70035989;&lt;BR /&gt;%let longStringInSas=&amp;amp;longStringInSas 70037073 70044862 70050145;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only thing I can think of creating the problem is some CR/LF issue where you have a mix of a Windows and a UNIX/Linux environment.&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;&lt;/P&gt;&lt;DIV class="mcePaste" id="_mcePaste" style="position: absolute; width: 1px; height: 1px; overflow: hidden; top: 0px; left: -10000px;"&gt;﻿&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 11:40:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-long-macro-variable-within-an-rsubmit-statement-is/m-p/22948#M3772</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2012-03-06T11:40:44Z</dc:date>
    </item>
    <item>
      <title>A long macro variable within an rsubmit statement is unexpectedly altered</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-long-macro-variable-within-an-rsubmit-statement-is/m-p/22949#M3773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello, Patrick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The local SAS version is 9.1 and local OS is Win XP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The version of SAS on the server is 9.2 - I have been told it's a Windows server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I %put the macro variable to the log, it still appears in the wrong way (with two of the numbers being concatenated). At first, I had used your suggestion of defining the string in several steps, which worked, but was unpretty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating the macro variable locally and pushing it to the server with %syslput seems to work much better. Using that method, I have no visible problems.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 12:44:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-long-macro-variable-within-an-rsubmit-statement-is/m-p/22949#M3773</guid>
      <dc:creator>Hedegaard</dc:creator>
      <dc:date>2012-03-06T12:44:11Z</dc:date>
    </item>
    <item>
      <title>A long macro variable within an rsubmit statement is unexpectedly altered</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-long-macro-variable-within-an-rsubmit-statement-is/m-p/22950#M3774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I have a peculiar problem now. When I run my program (which is way too big and involved for me to post here), it outputs among other things all but the third to last number in the macro variable. I have tried permuting the order of the numbers, and it is consistently the third to last number, which is being ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect that this has something to do with the variable being too long. It does this regardless of whether I use the %syslput method or the method of passing the string in several steps. Evidence for it to have something to do with the length of the string is that if I let the string contain only six numbers, then all six numbers are contained in the output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 13:05:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-long-macro-variable-within-an-rsubmit-statement-is/m-p/22950#M3774</guid>
      <dc:creator>Hedegaard</dc:creator>
      <dc:date>2012-03-06T13:05:22Z</dc:date>
    </item>
    <item>
      <title>A long macro variable within an rsubmit statement is unexpectedly altered</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-long-macro-variable-within-an-rsubmit-statement-is/m-p/22951#M3775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it is doing something odd based on position I would look for any loop or position counters getting accidentally incremented, especially if it isn't affecting the last two values. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 17:52:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-long-macro-variable-within-an-rsubmit-statement-is/m-p/22951#M3775</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-03-06T17:52:42Z</dc:date>
    </item>
    <item>
      <title>A long macro variable within an rsubmit statement is unexpectedly altered</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-long-macro-variable-within-an-rsubmit-statement-is/m-p/22952#M3776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you doing this inside a macro?&lt;/P&gt;&lt;P&gt;I know that there are problems with macro generated rsubmit code where SAS appears to be tokenizing the strings wrong.&lt;/P&gt;&lt;P&gt;I have had it bite me where it caused trouble and just changing the number of characters inside a comment made the code work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 19:07:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-long-macro-variable-within-an-rsubmit-statement-is/m-p/22952#M3776</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-03-06T19:07:41Z</dc:date>
    </item>
    <item>
      <title>A long macro variable within an rsubmit statement is unexpectedly altered</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-long-macro-variable-within-an-rsubmit-statement-is/m-p/22953#M3777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just out of curiousity: If you %bqoute() the string passed to the macro var does the issue remain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A macro var should be able to store 32K. %length(&amp;amp;macrovar) will tell you how long the stored string currently is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggest that you post this issue in a new thread so people look at it again (as this thread here is already flagged as answered). Possibly also contact SAS TechSupport.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2012 02:38:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-long-macro-variable-within-an-rsubmit-statement-is/m-p/22953#M3777</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2012-03-10T02:38:43Z</dc:date>
    </item>
    <item>
      <title>A long macro variable within an rsubmit statement is unexpectedly altered</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-long-macro-variable-within-an-rsubmit-statement-is/m-p/22954#M3778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Patrick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;32K is the default value for MVARSIZE, a option that controls the maximum size (in kilobytes) for storing a macro variable.&amp;nbsp; This is not however a limitation to the length of the data stored inside a macro variable, which is 65534 as of at least 9.1&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;Tom makes a very valid proposition.&amp;nbsp; Often rsubmit inside of macro exhibit unexpected behavior due to the nature of how sas compiles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syslput and sysrput are the recommended methods for transfering macro variable between sessions initiated by rsubmits.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2012 03:45:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-long-macro-variable-within-an-rsubmit-statement-is/m-p/22954#M3778</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2012-03-10T03:45:20Z</dc:date>
    </item>
    <item>
      <title>A long macro variable within an rsubmit statement is unexpectedly altered</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-long-macro-variable-within-an-rsubmit-statement-is/m-p/22955#M3779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Patrick: I tried using the %bquote function, but the same problem remains. In fact, now it ignores the second to last number in the list as opposed to the third to last, like it did before. This appears to have something to do with which number is in position 256 of the string. So in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399;"&gt;%let longStringInSas=%bquote(70044562 70038118 70000987 70006274 70006876 70009855 70010417 70010502 70010846 70013132 70013741 70017303 70017365 70018846 70018970 70019083 70019999 70020810 70023702 70024663 70027142 70027281 70027650 70029126 70032494 70035989 70037073 70044862 70050145);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399;"&gt; &lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399;"&gt;the second to last number now contains the 256th position in the string, while it was the third to last one before.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399;"&gt;Tom and FriedEgg: I am not doing this inside a macro function. The structure of the program around this assignment is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399;"&gt;%aMacroFunction;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399;"&gt;%let longStringInSas=%bquote(70044562 70038118 70000987 70006274 70006876 70009855 70010417 70010502 70010846 70013132 70013741 70017303 70017365 70018846 70018970 70019083 70019999 70020810 70023702 70024663 70027142 70027281 70027650 70029126 70032494 70035989 70037073 70044862 70050145);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399;"&gt;%syslput longStringInSas = &amp;amp;longStringInSas;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399;"&gt;rsubmit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399;"&gt;%anotherMacroFunction;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399;"&gt;[lots of macro variable assignments]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399;"&gt;endrsubmit;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2012 10:29:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-long-macro-variable-within-an-rsubmit-statement-is/m-p/22955#M3779</guid>
      <dc:creator>Hedegaard</dc:creator>
      <dc:date>2012-03-12T10:29:31Z</dc:date>
    </item>
    <item>
      <title>A long macro variable within an rsubmit statement is unexpectedly altered</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-long-macro-variable-within-an-rsubmit-statement-is/m-p/22956#M3780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should probably try to create the simpliest version of your program that exhibits the issue and send it SAS technical support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way to move information between SAS/Connect sessions is with datasets instead of macro variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data longstr;&lt;/P&gt;&lt;P&gt;&amp;nbsp; longstr="&amp;amp;longstr";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rsubmit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; proc upload data=longstr out=longstr status=n; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set longstr;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call symputx('longstr',longstr);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2012 13:47:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-long-macro-variable-within-an-rsubmit-statement-is/m-p/22956#M3780</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-03-12T13:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: A long macro variable within an rsubmit statement is unexpectedly altered</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-long-macro-variable-within-an-rsubmit-statement-is/m-p/22957#M3781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;Give the following a try in your enviornment as a test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;1. Create a macro to use inside local and remote sessions (plcnt)&lt;/P&gt;&lt;P&gt;2. Create a macro variable (longstring) of space delimited numerics with length 9&lt;/P&gt;&lt;P&gt;3. Validate execution of macro in rsubmit and preservation of data in longstring&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;filename &lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;acm &lt;/SPAN&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;temp&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;%let &lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;acm=&lt;/SPAN&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;%sysfunc&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;(pathname(acm));&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;data &lt;/STRONG&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;_null_&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;file &lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;acm;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;put &lt;/SPAN&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;_infile_&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;cards4&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: #ffffc0; font-family: 'Courier New'; font-size: 10pt;"&gt; %macro plcnt(str);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: #ffffc0; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp; %put Length= %length(&amp;amp;str) Words=%sysfunc(countw(&amp;amp;str));&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: #ffffc0; font-family: 'Courier New'; font-size: 10pt;"&gt; %mend;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;;;;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;%include &lt;/SPAN&gt;&lt;SPAN style="color: purple; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;"&amp;amp;acm"&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;%let &lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;longstring=&lt;/SPAN&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;%sysfunc&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;(repeat(&lt;/SPAN&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;%str&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;(12345678),&lt;/SPAN&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;%sysfunc&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;(floor(32767/9))));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;%&lt;STRONG&gt;&lt;EM&gt;plcnt&lt;/EM&gt;&lt;/STRONG&gt;(&amp;amp;longstring)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;signon &lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;subtask1 sascmd=&lt;/SPAN&gt;&lt;SPAN style="color: purple; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;"/usr/local/SAS/SASFoundation/9.2/sas" &lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;wait=no;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;%syslput &lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;longstring2=&amp;amp;longstring /remote=subtask1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;%syslput &lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;acm=&lt;/SPAN&gt;&lt;SPAN style="color: purple; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;"&amp;amp;acm"&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; /remote=subtask1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;rsubmit &lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;subtask1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;%include &lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;amp;acm;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; %&lt;STRONG&gt;&lt;EM&gt;plcnt&lt;/EM&gt;&lt;/STRONG&gt;(&amp;amp;longstring2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;data &lt;/STRONG&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;_null_&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp; &lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;array &lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;x[&lt;/SPAN&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;%sysfunc&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;(countw(&amp;amp;longstring2))](&amp;amp;longstring2);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp; dim=dim(x);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp; mean=mean(of x&lt;LI&gt;);&lt;/LI&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp; &lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;put &lt;/SPAN&gt;&lt;SPAN style="color: purple; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;'Keys: '&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; dim &lt;/SPAN&gt;&lt;SPAN style="color: purple; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;'Mean: '&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;mean;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;endrsubmit &lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;subtask1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;signon &lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;subtask2 sascmd=&lt;/SPAN&gt;&lt;SPAN style="color: purple; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;"/usr/local/SAS/SASFoundation/9.2/sas" &lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;wait=no;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;%syslput &lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;longstring3=&amp;amp;longstring /remote=subtask2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;%syslput &lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;acm=&lt;/SPAN&gt;&lt;SPAN style="color: purple; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;"&amp;amp;acm"&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; /remote=subtask2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;rsubmit &lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;subtask2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;%include &lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;amp;acm;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; %&lt;STRONG&gt;&lt;EM&gt;plcnt&lt;/EM&gt;&lt;/STRONG&gt;(&amp;amp;longstring3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;data &lt;/STRONG&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;_null_&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp; &lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;array &lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;x[&lt;/SPAN&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;%sysfunc&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;(countw(&amp;amp;longstring3))](&amp;amp;longstring3);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp; dim=dim(x);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp; median=median(of x&lt;LI&gt;);&lt;/LI&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp; &lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;put &lt;/SPAN&gt;&lt;SPAN style="color: purple; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;'Keys: '&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; dim &lt;/SPAN&gt;&lt;SPAN style="color: purple; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;'Median: '&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;median;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;endrsubmit &lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;subtask2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;waitfor &lt;/SPAN&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;_all_&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; subtask1 subtask2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;%&lt;STRONG&gt;&lt;EM&gt;plcnt&lt;/EM&gt;&lt;/STRONG&gt;(&amp;amp;longstring)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;data &lt;/STRONG&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;_null_&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp; &lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;array &lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;x[&lt;/SPAN&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;%sysfunc&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;(countw(&amp;amp;longstring))] (&amp;amp;longstring);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp; dim=dim(x);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp; mean=mean(of x&lt;LI&gt;);&lt;/LI&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp; median=median(of x&lt;LI&gt;);&lt;/LI&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp; &lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;put &lt;/SPAN&gt;&lt;SPAN style="color: purple; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;'Keys: '&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; dim &lt;/SPAN&gt;&lt;SPAN style="color: purple; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;' Mean: '&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;mean &lt;/SPAN&gt;&lt;SPAN style="color: purple; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;' Median: '&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; median;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;signoff &lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;subtask1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;signoff &lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;subtask2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Log Output for local session:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Length= 32768 Words= 3641&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Length= 32768 Words= 3641&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Keys: 3641&amp;nbsp; Mean: 12345678&amp;nbsp; Median: 12345678&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Log Output for subtask1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Length= 32768 Words= 3641&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Keys: 3641 Mean: 12345678&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Log Output for subtask2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Length= 32768 Words= 3641&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Keys: 3641 Median: 12345678&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2012 19:09:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-long-macro-variable-within-an-rsubmit-statement-is/m-p/22957#M3781</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2012-03-12T19:09:44Z</dc:date>
    </item>
  </channel>
</rss>

