<?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: ERROR Sack Overflow ?! in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790727#M32526</link>
    <description>&lt;P&gt;After this line in the log&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;MLOGIC(PCTVAR):  %PUT p_5=&amp;amp;&amp;amp;&amp;amp;note._p_5 p_50=&amp;amp;&amp;amp;&amp;amp;note._p_50 p_95=&amp;amp;&amp;amp;&amp;amp;note._p_95
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I see the following line in the log&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;p_5=115 p_50=210 p_95=340
&lt;/PRE&gt;
&lt;P&gt;That's what you want, right?????&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jan 2022 17:43:49 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2022-01-18T17:43:49Z</dc:date>
    <item>
      <title>ERROR: Stack Overflow ?!</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790701#M32515</link>
      <description>&lt;P&gt;I got ERROR msg below.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The macro codes are running fine. I move somewhere a little bit, RUN and got ERROR msg below. Any one can help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: An exception has been encountered.&lt;BR /&gt;Please contact technical support and provide them with the following traceback information:&lt;/P&gt;
&lt;P&gt;The SAS task name is [Submit]&lt;BR /&gt;ERROR: Stack overflow detected Submit&lt;BR /&gt;Exception occurred at (0521A6D7)&lt;BR /&gt;Task Traceback&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 14:32:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790701#M32515</guid>
      <dc:creator>hellohere</dc:creator>
      <dc:date>2022-01-19T14:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Sack Overflow ?!</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790702#M32516</link>
      <description>This means your macro code is not running fine. &lt;BR /&gt;&lt;BR /&gt;Can you post the code? Or more of the log?</description>
      <pubDate>Tue, 18 Jan 2022 16:00:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790702#M32516</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-01-18T16:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Sack Overflow ?!</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790707#M32517</link>
      <description>&lt;P&gt;It has lots of macros. Days ago, it is all fine.&amp;nbsp; Now I run step by step. It says the one below is not fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;%put "p_5=&amp;amp;&amp;amp;note._p_5. p_50=&amp;amp;&amp;amp;note._p_50. p_95=&amp;amp;&amp;amp;note._p_95.";&lt;/P&gt;&lt;P&gt;The line above does not print the expected values[the macro supposes to assign percentiles to macro variables].&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%pctvar(sashelp.cars, horsepower, hp);&lt;BR /&gt;%macro pctvar(ds, var, note);&lt;BR /&gt;proc univariate data=&amp;amp;ds. noprint;&lt;BR /&gt;var &amp;amp;var.;&lt;BR /&gt;output pctlpre=&amp;amp;note._p_ pctlpts= 5 to 95 by 5;&lt;BR /&gt;run;&lt;BR /&gt;proc print; run;&lt;BR /&gt;data _null_;&lt;BR /&gt;set;&lt;BR /&gt;array &amp;amp;note._p_ &amp;amp;note._p_:;&lt;BR /&gt;do over &amp;amp;note._p_;&lt;BR /&gt;call symputx(vname(&amp;amp;note._p_),&amp;amp;note._p_);&lt;BR /&gt;end;&lt;BR /&gt;stop;&lt;BR /&gt;run;quit;&lt;BR /&gt;%put "p_5=&amp;amp;&amp;amp;note._p_5. p_50=&amp;amp;&amp;amp;note._p_50. p_95=&amp;amp;&amp;amp;note._p_95.";&lt;BR /&gt;%mend;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 16:42:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790707#M32517</guid>
      <dc:creator>hellohere</dc:creator>
      <dc:date>2022-01-18T16:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Sack Overflow ?!</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790708#M32518</link>
      <description>&lt;P&gt;%pctvar(sashelp.cars, horsepower, hp);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro pctvar(ds, var, note);&lt;BR /&gt;proc univariate data=&amp;amp;ds. noprint;&lt;BR /&gt;var &amp;amp;var.;&lt;BR /&gt;output pctlpre=p_&amp;amp;note._ pctlpts= 5 to 95 by 5;&lt;BR /&gt;run;&lt;BR /&gt;proc print; run;&lt;BR /&gt;data _null_;&lt;BR /&gt;set;&lt;BR /&gt;array p_&amp;amp;note._ p_&amp;amp;note._:;&lt;BR /&gt;do over p_&amp;amp;note._;&lt;BR /&gt;call symputx(vname(p_&amp;amp;note._),p_&amp;amp;note._,'G');/*G=global?*/&lt;BR /&gt;end;&lt;BR /&gt;stop;&lt;BR /&gt;run;quit;&lt;BR /&gt;%put "p_5=&amp;amp;&amp;amp;p_&amp;amp;note._5. p_50=&amp;amp;&amp;amp;p_&amp;amp;note._50. p_95=&amp;amp;&amp;amp;p_&amp;amp;note._95.";&lt;BR /&gt;%mend;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 16:47:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790708#M32518</guid>
      <dc:creator>hellohere</dc:creator>
      <dc:date>2022-01-18T16:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Sack Overflow ?!</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790710#M32519</link>
      <description>&lt;P&gt;To tell you the truth, I am surprised this macro ever worked.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have modified it so that it works FOR ME, and I use explicit (rather than implicit) data set names and array references. I have also put the call to the macro AFTER the definition of the macro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which brings up the question, why would you want to store statistical output in macro variables anyway? Why don't you just leave them in the SAS data set?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro pctvar(ds, var, note);
proc univariate data=&amp;amp;ds. noprint;
    var &amp;amp;var.;
    output pctlpre=&amp;amp;note._p_ pctlpts= 5 to 95 by 5 out=a;
run;
data _null_;
    set a;
    array &amp;amp;note._p_ &amp;amp;note._p_:;
    do i=1 to dim(&amp;amp;note._p_);
        call symputx(vname(&amp;amp;note._p_(i)),&amp;amp;note._p_(i));
    end;
run;
%put p_5=&amp;amp;&amp;amp;&amp;amp;note._p_5 p_50=&amp;amp;&amp;amp;&amp;amp;note._p_50 p_95=&amp;amp;&amp;amp;&amp;amp;note._p_95;
%mend;

%pctvar(sashelp.cars, horsepower, hp)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 17:05:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790710#M32519</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-01-18T17:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Sack Overflow ?!</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790715#M32520</link>
      <description>&lt;P&gt;Show the result of YOUR code and what you expect the output to be.&lt;/P&gt;
&lt;P&gt;You say "The line above does not print the expected values" but have not provided any evidence of that, i.e. the actual output and the expected output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/409584"&gt;@hellohere&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;It has lots of macros. Days ago, it is all fine.&amp;nbsp; Now I run step by step. It says the one below is not fine.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%put "p_5=&amp;amp;&amp;amp;note._p_5. p_50=&amp;amp;&amp;amp;note._p_50. p_95=&amp;amp;&amp;amp;note._p_95.";&lt;/P&gt;
&lt;P&gt;The line above does not print the expected values[the macro supposes to assign percentiles to macro variables].&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%pctvar(sashelp.cars, horsepower, hp);&lt;BR /&gt;%macro pctvar(ds, var, note);&lt;BR /&gt;proc univariate data=&amp;amp;ds. noprint;&lt;BR /&gt;var &amp;amp;var.;&lt;BR /&gt;output pctlpre=&amp;amp;note._p_ pctlpts= 5 to 95 by 5;&lt;BR /&gt;run;&lt;BR /&gt;proc print; run;&lt;BR /&gt;data _null_;&lt;BR /&gt;set;&lt;BR /&gt;array &amp;amp;note._p_ &amp;amp;note._p_:;&lt;BR /&gt;do over &amp;amp;note._p_;&lt;BR /&gt;call symputx(vname(&amp;amp;note._p_),&amp;amp;note._p_);&lt;BR /&gt;end;&lt;BR /&gt;stop;&lt;BR /&gt;run;quit;&lt;BR /&gt;%put "p_5=&amp;amp;&amp;amp;note._p_5. p_50=&amp;amp;&amp;amp;note._p_50. p_95=&amp;amp;&amp;amp;note._p_95.";&lt;BR /&gt;%mend;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 17:11:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790715#M32520</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-01-18T17:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Sack Overflow ?!</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790716#M32521</link>
      <description>&lt;P&gt;Not Sure what is going on?!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;0) How to a macro variable with another macro variable in it?!&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Why cannot delete the macro variable(below)? Is my computer having problem?!&lt;/P&gt;&lt;P&gt;GLOBAL P_VOL_B_10 867976&lt;BR /&gt;GLOBAL P_VOL_B_15 1205259&lt;BR /&gt;GLOBAL P_VOL_B_20 1683118&lt;BR /&gt;GLOBAL P_VOL_B_25 2128543&lt;BR /&gt;GLOBAL P_VOL_B_30 2660988&lt;BR /&gt;GLOBAL P_VOL_B_35 2895309&lt;BR /&gt;GLOBAL P_VOL_B_40 3496028&lt;BR /&gt;GLOBAL P_VOL_B_45 4244589&lt;BR /&gt;GLOBAL P_VOL_B_5 582102&lt;BR /&gt;GLOBAL P_VOL_B_50 4632714&lt;BR /&gt;GLOBAL P_VOL_B_55 5190511&lt;BR /&gt;GLOBAL P_VOL_B_60 6235967&lt;BR /&gt;GLOBAL P_VOL_B_65 7352003&lt;BR /&gt;GLOBAL P_VOL_B_70 8194236&lt;BR /&gt;GLOBAL P_VOL_B_75 10235694&lt;BR /&gt;GLOBAL P_VOL_B_80 14296730&lt;BR /&gt;GLOBAL P_VOL_B_85 17937992&lt;BR /&gt;GLOBAL P_VOL_B_90 23802025&lt;BR /&gt;GLOBAL P_VOL_B_95 43347092&lt;BR /&gt;GLOBAL START_DT_I 31&lt;BR /&gt;GLOBAL TS 1100&lt;BR /&gt;WARNING: Attempt to delete macro variable P_VOL_B_10 failed. Variable not found.&lt;BR /&gt;8709 %SYMDEL p_vol_B_10;&lt;BR /&gt;WARNING: Attempt to delete macro variable P_VOL_B_10 failed. Variable not found.&lt;BR /&gt;8710 %SYMDEL P_VOL_B_10;&lt;BR /&gt;WARNING: Attempt to delete macro variable P_VOL_B_50 failed. Variable not found.&lt;BR /&gt;8711 %SYMDEL P_VOL_B_50;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 17:16:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790716#M32521</guid>
      <dc:creator>hellohere</dc:creator>
      <dc:date>2022-01-18T17:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Sack Overflow ?!</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790717#M32522</link>
      <description>&lt;P&gt;The according percentile in the dataset from SAS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;Obs p_hp_5 p_hp_10 p_hp_15 p_hp_20 p_hp_25 p_hp_30 p_hp_35 p_hp_40 p_hp_45 p_hp_50 p_hp_55 p_hp_60 p_hp_65 p_hp_70 p_hp_75 p_hp_80 p_hp_85 p_hp_90 p_hp_951 &lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;115&lt;/TD&gt;&lt;TD&gt;130&lt;/TD&gt;&lt;TD&gt;140&lt;/TD&gt;&lt;TD&gt;155&lt;/TD&gt;&lt;TD&gt;165&lt;/TD&gt;&lt;TD&gt;172&lt;/TD&gt;&lt;TD&gt;184&lt;/TD&gt;&lt;TD&gt;193&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;210&lt;/TD&gt;&lt;TD&gt;215&lt;/TD&gt;&lt;TD&gt;224&lt;/TD&gt;&lt;TD&gt;230&lt;/TD&gt;&lt;TD&gt;240&lt;/TD&gt;&lt;TD&gt;255&lt;/TD&gt;&lt;TD&gt;275&lt;/TD&gt;&lt;TD&gt;295&lt;/TD&gt;&lt;TD&gt;302&lt;/TD&gt;&lt;TD&gt;340&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 18 Jan 2022 17:19:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790717#M32522</guid>
      <dc:creator>hellohere</dc:creator>
      <dc:date>2022-01-18T17:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Sack Overflow ?!</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790719#M32523</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp; But I run you code and get the below(does not show up the percentile value at the end).&lt;/P&gt;&lt;P&gt;I assign the percentile values to macro variables and use them down the stream.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MLOGIC(PCTVAR): Beginning execution.&lt;BR /&gt;MLOGIC(PCTVAR): Parameter DS has value sashelp.cars&lt;BR /&gt;MLOGIC(PCTVAR): Parameter VAR has value horsepower&lt;BR /&gt;MLOGIC(PCTVAR): Parameter NOTE has value hp&lt;BR /&gt;MPRINT(PCTVAR): proc univariate data=sashelp.cars noprint;&lt;BR /&gt;MPRINT(PCTVAR): var horsepower;&lt;BR /&gt;MPRINT(PCTVAR): output pctlpre=hp_p_ pctlpts= 5 to 95 by 5 out=a;&lt;BR /&gt;MPRINT(PCTVAR): run;&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.A has 1 observations and 19 variables.&lt;BR /&gt;NOTE: PROCEDURE UNIVARIATE used (Total process time):&lt;BR /&gt;real time 0.01 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;MPRINT(PCTVAR): data _null_;&lt;BR /&gt;MPRINT(PCTVAR): set a;&lt;BR /&gt;MPRINT(PCTVAR): array hp_p_ hp_p_:;&lt;BR /&gt;MPRINT(PCTVAR): do i=1 to dim(hp_p_);&lt;BR /&gt;MPRINT(PCTVAR): call symputx(vname(hp_p_(i)),hp_p_(i));&lt;BR /&gt;MPRINT(PCTVAR): end;&lt;BR /&gt;MPRINT(PCTVAR): run;&lt;/P&gt;&lt;P&gt;NOTE: There were 1 observations read from the data set WORK.A.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.02 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;MLOGIC(PCTVAR): %PUT p_5=&amp;amp;&amp;amp;&amp;amp;note._p_5 p_50=&amp;amp;&amp;amp;&amp;amp;note._p_50 p_95=&amp;amp;&amp;amp;&amp;amp;note._p_95&lt;BR /&gt;p_5=&amp;amp;&amp;amp;hp_p_5 p_50=&amp;amp;&amp;amp;hp_p_50 p_95=&amp;amp;&amp;amp;hp_p_95&lt;BR /&gt;MLOGIC(PCTVAR): Ending execution.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 17:22:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790719#M32523</guid>
      <dc:creator>hellohere</dc:creator>
      <dc:date>2022-01-18T17:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Sack Overflow ?!</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790722#M32524</link>
      <description>&lt;P&gt;1. This log/code doesn't show the error you've initially posted. &lt;BR /&gt;2. CALL SYMPUTX() takes 3 parameters (third is optional). You've only used two, which means you're creating local macro variables only available within the current macro. Use the third parameter to create global macro variables. Variable Scope is the term you need here.&amp;nbsp;&lt;BR /&gt;3. If you're doing binning, I recommend PROC RANK instead but for other reporting, the macro variables may be necessary.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 17:29:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790722#M32524</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-01-18T17:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Sack Overflow ?!</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790726#M32525</link>
      <description>&lt;P&gt;Can I bother you correct the macro below?!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let the line, %put "p_5=&amp;amp;&amp;amp;p_&amp;amp;note._5. p_50=&amp;amp;&amp;amp;p_&amp;amp;note._50. p_95=&amp;amp;&amp;amp;p_&amp;amp;note._95.";,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;print out&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;the 5/50/95 percentile of horsepower/sashelp.cars ?!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;%macro pctvar(ds, var, note);&lt;/SPAN&gt;&lt;BR /&gt;proc univariate data=&amp;amp;ds. noprint;&lt;BR /&gt;var &amp;amp;var.;&lt;BR /&gt;output pctlpre=p_&amp;amp;note._ pctlpts= 5 to 95 by 5;&lt;BR /&gt;run;&lt;BR /&gt;proc print; run;&lt;BR /&gt;data _null_;&lt;BR /&gt;set;&lt;BR /&gt;array p_&amp;amp;note._ p_&amp;amp;note._:;&lt;BR /&gt;do over p_&amp;amp;note._;&lt;BR /&gt;call symputx(vname(p_&amp;amp;note._),p_&amp;amp;note._,'G');/*G=global?*/&lt;BR /&gt;end;&lt;BR /&gt;stop;&lt;BR /&gt;run;quit;&lt;BR /&gt;%put "p_5=&amp;amp;&amp;amp;p_&amp;amp;note._5. p_50=&amp;amp;&amp;amp;p_&amp;amp;note._50. p_95=&amp;amp;&amp;amp;p_&amp;amp;note._95.";&lt;BR /&gt;&lt;SPAN&gt;%mend;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%pctvar(sashelp.cars, horsepower, hp);&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 17:35:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790726#M32525</guid>
      <dc:creator>hellohere</dc:creator>
      <dc:date>2022-01-18T17:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Sack Overflow ?!</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790727#M32526</link>
      <description>&lt;P&gt;After this line in the log&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;MLOGIC(PCTVAR):  %PUT p_5=&amp;amp;&amp;amp;&amp;amp;note._p_5 p_50=&amp;amp;&amp;amp;&amp;amp;note._p_50 p_95=&amp;amp;&amp;amp;&amp;amp;note._p_95
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I see the following line in the log&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;p_5=115 p_50=210 p_95=340
&lt;/PRE&gt;
&lt;P&gt;That's what you want, right?????&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 17:43:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790727#M32526</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-01-18T17:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Sack Overflow ?!</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790732#M32527</link>
      <description>&lt;P&gt;It appears that you deleted the variable and then attempt to delete it three more times. The 'not found' means the variable does not exist in the scope where you are are attempting the %symdel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;0) How to a macro variable with another macro variable in it?!&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Provide a completely worked example of what this is supposed to mean. Start with some values, describe the rules and then show the final result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 17:55:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790732#M32527</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-01-18T17:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Sack Overflow ?!</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790738#M32531</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro pctvar(ds, var, note);
proc univariate data=&amp;amp;ds. noprint;
var &amp;amp;var.;
output out=a pctlpre=&amp;amp;note._p_ pctlpts= 5 to 95 by 5;
run;

data _null_;
set a;
array &amp;amp;note._p_ &amp;amp;note._p_:;
do over &amp;amp;note._p_;
call symputx(vname(&amp;amp;note._p_), &amp;amp;note._p_, 'g');
end;
run;

proc sql;
drop table a;
quit;

%put "p_5=&amp;amp;&amp;amp;&amp;amp;note._p_5. p_50=&amp;amp;&amp;amp;&amp;amp;note._p_50. p_95=&amp;amp;&amp;amp;&amp;amp;note._p_95.";
%mend;

%pctvar(sashelp.cars, horsepower, hp);

%put &amp;amp;hp_p_5.;
%put &amp;amp;hp_p_50;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Log:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt; 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 68         
 69         
 70         options mprint symbolgen;
 71         
 72         %macro pctvar(ds, var, note);
 73         proc univariate data=&amp;amp;ds. noprint;
 74         var &amp;amp;var.;
 75         output out=a pctlpre=&amp;amp;note._p_ pctlpts= 5 to 95 by 5;
 76         run;
 77         
 78         data _null_;
 79         set a;
 80         array &amp;amp;note._p_ &amp;amp;note._p_:;
 81         do over &amp;amp;note._p_;
 82         call symputx(vname(&amp;amp;note._p_), &amp;amp;note._p_, 'g');
 83         end;
 84         run;
 85         
 86         proc sql;
 87         drop table a;
 88         quit;
 89         
 90         %put "p_5=&amp;amp;&amp;amp;&amp;amp;note._p_5. p_50=&amp;amp;&amp;amp;&amp;amp;note._p_50. p_95=&amp;amp;&amp;amp;&amp;amp;note._p_95.";
 91         %mend;
 92         
 93         %pctvar(sashelp.cars, horsepower, hp);
 SYMBOLGEN:  Macro variable DS resolves to sashelp.cars
 MPRINT(PCTVAR):   proc univariate data=sashelp.cars noprint;
 SYMBOLGEN:  Macro variable VAR resolves to horsepower
 MPRINT(PCTVAR):   var horsepower;
 SYMBOLGEN:  Macro variable NOTE resolves to hp
 MPRINT(PCTVAR):   output out=a pctlpre=hp_p_ pctlpts= 5 to 95 by 5;
 MPRINT(PCTVAR):   run;
 
 NOTE: The data set WORK.A has 1 observations and 19 variables.
 NOTE: PROCEDURE UNIVARIATE used (Total process time):
       real time           0.00 seconds
       user cpu time       0.00 seconds
       system cpu time     0.00 seconds
       memory              634.75k
       OS Memory           26020.00k
       Timestamp           01/18/2022 06:10:28 PM
       Step Count                        59  Switch Count  2
       Page Faults                       0
       Page Reclaims                     102
       Page Swaps                        0
       Voluntary Context Switches        10
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           264
       
 
 MPRINT(PCTVAR):   data _null_;
 MPRINT(PCTVAR):   set a;
 SYMBOLGEN:  Macro variable NOTE resolves to hp
 SYMBOLGEN:  Macro variable NOTE resolves to hp
 MPRINT(PCTVAR):   array hp_p_ hp_p_:;
 SYMBOLGEN:  Macro variable NOTE resolves to hp
 MPRINT(PCTVAR):   do over hp_p_;
 SYMBOLGEN:  Macro variable NOTE resolves to hp
 SYMBOLGEN:  Macro variable NOTE resolves to hp
 MPRINT(PCTVAR):   call symputx(vname(hp_p_), hp_p_, 'g');
 MPRINT(PCTVAR):   end;
 MPRINT(PCTVAR):   run;
 
 NOTE: There were 1 observations read from the data set WORK.A.
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       user cpu time       0.00 seconds
       system cpu time     0.00 seconds
       memory              647.62k
       OS Memory           26276.00k
       Timestamp           01/18/2022 06:10:28 PM
       Step Count                        60  Switch Count  0
       Page Faults                       0
       Page Reclaims                     100
       Page Swaps                        0
       Voluntary Context Switches        0
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           8
       
 
 MPRINT(PCTVAR):   proc sql;
 MPRINT(PCTVAR):   drop table a;
 NOTE: Table WORK.A has been dropped.
 MPRINT(PCTVAR):   quit;
 NOTE: PROCEDURE SQL used (Total process time):
       real time           0.00 seconds
       user cpu time       0.00 seconds
       system cpu time     0.00 seconds
       memory              46.25k
       OS Memory           26016.00k
       Timestamp           01/18/2022 06:10:28 PM
       Step Count                        61  Switch Count  2
       Page Faults                       0
       Page Reclaims                     14
       Page Swaps                        0
       Voluntary Context Switches        9
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           0
       
 
 SYMBOLGEN:  &amp;amp;&amp;amp; resolves to &amp;amp;.
 SYMBOLGEN:  Macro variable NOTE resolves to hp
 SYMBOLGEN:  Macro variable HP_P_5 resolves to 115
 SYMBOLGEN:  &amp;amp;&amp;amp; resolves to &amp;amp;.
 SYMBOLGEN:  Macro variable NOTE resolves to hp
 SYMBOLGEN:  Macro variable HP_P_50 resolves to 210
 SYMBOLGEN:  &amp;amp;&amp;amp; resolves to &amp;amp;.
 SYMBOLGEN:  Macro variable NOTE resolves to hp
 SYMBOLGEN:  Macro variable HP_P_95 resolves to 340
 "p_5=115 p_50=210 p_95=340"
 94         
 95         %put &amp;amp;hp_p_5.;
 SYMBOLGEN:  Macro variable HP_P_5 resolves to 115
 115
 96         %put &amp;amp;hp_p_50.;
 SYMBOLGEN:  Macro variable HP_P_50 resolves to 210
 210
 97         
 98         
 99         
 100        
 101        OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 SYMBOLGEN:  Macro variable GRAPHTERM resolves to GOPTIONS NOACCESSIBLE;
 111        &lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/409584"&gt;@hellohere&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;It has lots of macros. Days ago, it is all fine.&amp;nbsp; Now I run step by step. It says the one below is not fine.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%put "p_5=&amp;amp;&amp;amp;note._p_5. p_50=&amp;amp;&amp;amp;note._p_50. p_95=&amp;amp;&amp;amp;note._p_95.";&lt;/P&gt;
&lt;P&gt;The line above does not print the expected values[the macro supposes to assign percentiles to macro variables].&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%pctvar(sashelp.cars, horsepower, hp);&lt;BR /&gt;%macro pctvar(ds, var, note);&lt;BR /&gt;proc univariate data=&amp;amp;ds. noprint;&lt;BR /&gt;var &amp;amp;var.;&lt;BR /&gt;output pctlpre=&amp;amp;note._p_ pctlpts= 5 to 95 by 5;&lt;BR /&gt;run;&lt;BR /&gt;proc print; run;&lt;BR /&gt;data _null_;&lt;BR /&gt;set;&lt;BR /&gt;array &amp;amp;note._p_ &amp;amp;note._p_:;&lt;BR /&gt;do over &amp;amp;note._p_;&lt;BR /&gt;call symputx(vname(&amp;amp;note._p_),&amp;amp;note._p_);&lt;BR /&gt;end;&lt;BR /&gt;stop;&lt;BR /&gt;run;quit;&lt;BR /&gt;%put "p_5=&amp;amp;&amp;amp;note._p_5. p_50=&amp;amp;&amp;amp;note._p_50. p_95=&amp;amp;&amp;amp;note._p_95.";&lt;BR /&gt;%mend;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 18:10:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790738#M32531</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-01-18T18:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Sack Overflow ?!</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790744#M32532</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/409584"&gt;@hellohere&lt;/a&gt;&amp;nbsp;said:&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;I assign the percentile values to macro variables and use them down the stream.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;This is not an answer to my question. Yes, I knew that you were going to use the macro variables, otherwise you wouldn't put all this work into creating them. I want to know how you are going to use them ... are you going to use them for outlier detection, or reporting, or plotting or something else? Please explain. You are spending lots of time and effort to get these macro variables, and that may not be necessary.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 19:31:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790744#M32532</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-01-18T19:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Sack Overflow ?!</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790786#M32540</link>
      <description>&lt;P&gt;Thanks. Yes, it is what I want. But I run you code. I did not get the value, wondering whether my computer has problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;8837 %macro pctvar(ds, var, note);&lt;BR /&gt;8838 proc univariate data=&amp;amp;ds. noprint;&lt;BR /&gt;8839 var &amp;amp;var.;&lt;BR /&gt;8840 output pctlpre=&amp;amp;note._p_ pctlpts= 5 to 95 by 5 out=a;&lt;BR /&gt;8841 run;&lt;BR /&gt;8842 data _null_;&lt;BR /&gt;8843 set a;&lt;BR /&gt;8844 array &amp;amp;note._p_ &amp;amp;note._p_:;&lt;BR /&gt;8845 do i=1 to dim(&amp;amp;note._p_);&lt;BR /&gt;8846 call symputx(vname(&amp;amp;note._p_(i)),&amp;amp;note._p_(i));&lt;BR /&gt;8847 end;&lt;BR /&gt;8848 run;&lt;BR /&gt;8849 %put p_5=&amp;amp;&amp;amp;&amp;amp;note._p_5 p_50=&amp;amp;&amp;amp;&amp;amp;note._p_50 p_95=&amp;amp;&amp;amp;&amp;amp;note._p_95;&lt;BR /&gt;8850 %mend;&lt;BR /&gt;8851&lt;BR /&gt;8852 %pctvar(sashelp.cars, horsepower, hp)&lt;BR /&gt;MLOGIC(PCTVAR): Beginning execution.&lt;BR /&gt;MLOGIC(PCTVAR): Parameter DS has value sashelp.cars&lt;BR /&gt;MLOGIC(PCTVAR): Parameter VAR has value horsepower&lt;BR /&gt;MLOGIC(PCTVAR): Parameter NOTE has value hp&lt;BR /&gt;MPRINT(PCTVAR): proc univariate data=sashelp.cars noprint;&lt;BR /&gt;MPRINT(PCTVAR): var horsepower;&lt;BR /&gt;MPRINT(PCTVAR): output pctlpre=hp_p_ pctlpts= 5 to 95 by 5 out=a;&lt;BR /&gt;MPRINT(PCTVAR): run;&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.A has 1 observations and 19 variables.&lt;BR /&gt;NOTE: PROCEDURE UNIVARIATE used (Total process time):&lt;BR /&gt;real time 0.04 seconds&lt;BR /&gt;cpu time 0.03 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;MPRINT(PCTVAR): data _null_;&lt;BR /&gt;MPRINT(PCTVAR): set a;&lt;BR /&gt;MPRINT(PCTVAR): array hp_p_ hp_p_:;&lt;BR /&gt;MPRINT(PCTVAR): do i=1 to dim(hp_p_);&lt;BR /&gt;MPRINT(PCTVAR): call symputx(vname(hp_p_(i)),hp_p_(i));&lt;BR /&gt;MPRINT(PCTVAR): end;&lt;BR /&gt;MPRINT(PCTVAR): run;&lt;/P&gt;&lt;P&gt;NOTE: There were 1 observations read from the data set WORK.A.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.04 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;MLOGIC(PCTVAR): %PUT p_5=&amp;amp;&amp;amp;&amp;amp;note._p_5 p_50=&amp;amp;&amp;amp;&amp;amp;note._p_50 p_95=&amp;amp;&amp;amp;&amp;amp;note._p_95&lt;BR /&gt;p_5=&amp;amp;&amp;amp;hp_p_5 p_50=&amp;amp;&amp;amp;hp_p_50 p_95=&amp;amp;&amp;amp;hp_p_95&lt;BR /&gt;MLOGIC(PCTVAR): Ending execution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 00:33:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790786#M32540</guid>
      <dc:creator>hellohere</dc:creator>
      <dc:date>2022-01-19T00:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Sack Overflow ?!</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790787#M32541</link>
      <description>&lt;P&gt;I posted working code. If that doesn't work for you post your full log and the code. &lt;BR /&gt;Otherwise go through it line by line and compare and ensure they're exactly the same - they're not. &lt;BR /&gt;If you want to make changes for whatever reason, do them one at a time AFTER you've verified the code I posted works as posted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/409584"&gt;@hellohere&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks. Yes, it is what I want. But I run you code. I did not get the value, wondering whether my computer has problem.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;8837 %macro pctvar(ds, var, note);&lt;BR /&gt;8838 proc univariate data=&amp;amp;ds. noprint;&lt;BR /&gt;8839 var &amp;amp;var.;&lt;BR /&gt;8840 output pctlpre=&amp;amp;note._p_ pctlpts= 5 to 95 by 5 out=a;&lt;BR /&gt;8841 run;&lt;BR /&gt;8842 data _null_;&lt;BR /&gt;8843 set a;&lt;BR /&gt;8844 array &amp;amp;note._p_ &amp;amp;note._p_:;&lt;BR /&gt;8845 do i=1 to dim(&amp;amp;note._p_);&lt;BR /&gt;8846 call symputx(vname(&amp;amp;note._p_(i)),&amp;amp;note._p_(i));&lt;BR /&gt;8847 end;&lt;BR /&gt;8848 run;&lt;BR /&gt;8849 %put p_5=&amp;amp;&amp;amp;&amp;amp;note._p_5 p_50=&amp;amp;&amp;amp;&amp;amp;note._p_50 p_95=&amp;amp;&amp;amp;&amp;amp;note._p_95;&lt;BR /&gt;8850 %mend;&lt;BR /&gt;8851&lt;BR /&gt;8852 %pctvar(sashelp.cars, horsepower, hp)&lt;BR /&gt;MLOGIC(PCTVAR): Beginning execution.&lt;BR /&gt;MLOGIC(PCTVAR): Parameter DS has value sashelp.cars&lt;BR /&gt;MLOGIC(PCTVAR): Parameter VAR has value horsepower&lt;BR /&gt;MLOGIC(PCTVAR): Parameter NOTE has value hp&lt;BR /&gt;MPRINT(PCTVAR): proc univariate data=sashelp.cars noprint;&lt;BR /&gt;MPRINT(PCTVAR): var horsepower;&lt;BR /&gt;MPRINT(PCTVAR): output pctlpre=hp_p_ pctlpts= 5 to 95 by 5 out=a;&lt;BR /&gt;MPRINT(PCTVAR): run;&lt;/P&gt;
&lt;P&gt;NOTE: The data set WORK.A has 1 observations and 19 variables.&lt;BR /&gt;NOTE: PROCEDURE UNIVARIATE used (Total process time):&lt;BR /&gt;real time 0.04 seconds&lt;BR /&gt;cpu time 0.03 seconds&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;MPRINT(PCTVAR): data _null_;&lt;BR /&gt;MPRINT(PCTVAR): set a;&lt;BR /&gt;MPRINT(PCTVAR): array hp_p_ hp_p_:;&lt;BR /&gt;MPRINT(PCTVAR): do i=1 to dim(hp_p_);&lt;BR /&gt;MPRINT(PCTVAR): call symputx(vname(hp_p_(i)),hp_p_(i));&lt;BR /&gt;MPRINT(PCTVAR): end;&lt;BR /&gt;MPRINT(PCTVAR): run;&lt;/P&gt;
&lt;P&gt;NOTE: There were 1 observations read from the data set WORK.A.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.04 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;MLOGIC(PCTVAR): %PUT p_5=&amp;amp;&amp;amp;&amp;amp;note._p_5 p_50=&amp;amp;&amp;amp;&amp;amp;note._p_50 p_95=&amp;amp;&amp;amp;&amp;amp;note._p_95&lt;BR /&gt;p_5=&amp;amp;&amp;amp;hp_p_5 p_50=&amp;amp;&amp;amp;hp_p_50 p_95=&amp;amp;&amp;amp;hp_p_95&lt;BR /&gt;MLOGIC(PCTVAR): Ending execution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 01:24:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790787#M32541</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-01-19T01:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Sack Overflow ?!</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790788#M32542</link>
      <description>&lt;P&gt;Thanks a huge. But I have to say my SAS/computer&amp;nbsp; has problem NOW.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) I run you code, the put line does not show up the value[see below], as seen in your log.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) run a simple code below, it complains.&lt;/P&gt;&lt;P&gt;3) The code I am running on giganttttic data does not change any. It used to be ok!&lt;/P&gt;&lt;P&gt;_______________________________________________________________________&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;select case when horsepower&amp;gt;210 then 1 else 0 end as is_big, "big flag" as flag_note, count(*) as cttot&lt;BR /&gt;from sashelp.cars&lt;BR /&gt;group by 1，2;&lt;BR /&gt;quit;___________________________________________________&lt;/P&gt;&lt;P&gt;9121 proc sql;&lt;BR /&gt;9122 select case when horsepower&amp;gt;210 then 1 else 0 end as is_big, "big flag" as flag_note, count(*)&lt;BR /&gt;-&lt;BR /&gt;22&lt;BR /&gt;200&lt;BR /&gt;9122! as cttot&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string,&lt;BR /&gt;a numeric constant, a datetime constant, a missing value, (, *, +, -, BTRIM,&lt;BR /&gt;CALCULATED, CASE, EXISTS, INPUT, NOT, PUT, SUBSTRING, TRANSLATE, USER, ^, ~.&lt;/P&gt;&lt;P&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/P&gt;&lt;P&gt;9123 from sashelp.cars&lt;BR /&gt;9124 group by 1,2;&lt;BR /&gt;9125 quit;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;————————————————————————&lt;/P&gt;&lt;P&gt;9092 options mprint symbolgen;&lt;BR /&gt;9093&lt;BR /&gt;9094 %macro pctvar(ds, var, note);&lt;BR /&gt;9095 proc univariate data=&amp;amp;ds. noprint;&lt;BR /&gt;9096 var &amp;amp;var.;&lt;BR /&gt;9097 output out=a pctlpre=&amp;amp;note._p_ pctlpts= 5 to 95 by 5;&lt;BR /&gt;9098 run;&lt;BR /&gt;9099&lt;BR /&gt;9100 data _null_;&lt;BR /&gt;9101 set a;&lt;BR /&gt;9102 array &amp;amp;note._p_ &amp;amp;note._p_:;&lt;BR /&gt;9103 do over &amp;amp;note._p_;&lt;BR /&gt;9104 call symputx(vname(&amp;amp;note._p_), &amp;amp;note._p_, 'g');&lt;BR /&gt;9105 end;&lt;BR /&gt;9106 run;&lt;BR /&gt;9107&lt;BR /&gt;9108 proc sql;&lt;BR /&gt;9109 drop table a;&lt;BR /&gt;9110 quit;&lt;BR /&gt;9111&lt;BR /&gt;9112 %put "p_5=&amp;amp;&amp;amp;&amp;amp;note._p_5. p_50=&amp;amp;&amp;amp;&amp;amp;note._p_50. p_95=&amp;amp;&amp;amp;&amp;amp;note._p_95.";&lt;BR /&gt;9113 %mend;&lt;BR /&gt;9114&lt;BR /&gt;9115 %pctvar(sashelp.cars, horsepower, hp);&lt;BR /&gt;MLOGIC(PCTVAR): Beginning execution.&lt;BR /&gt;MLOGIC(PCTVAR): Parameter DS has value sashelp.cars&lt;BR /&gt;MLOGIC(PCTVAR): Parameter VAR has value horsepower&lt;BR /&gt;MLOGIC(PCTVAR): Parameter NOTE has value hp&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SYMBOLGEN: Macro variable DS resolves to sashelp.cars&lt;BR /&gt;MPRINT(PCTVAR): proc univariate data=sashelp.cars noprint;&lt;BR /&gt;SYMBOLGEN: Macro variable VAR resolves to horsepower&lt;BR /&gt;MPRINT(PCTVAR): var horsepower;&lt;BR /&gt;SYMBOLGEN: Macro variable NOTE resolves to hp&lt;BR /&gt;MPRINT(PCTVAR): output out=a pctlpre=hp_p_ pctlpts= 5 to 95 by 5;&lt;BR /&gt;MPRINT(PCTVAR): run;&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.A has 1 observations and 19 variables.&lt;BR /&gt;NOTE: PROCEDURE UNIVARIATE used (Total process time):&lt;BR /&gt;real time 0.02 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;MPRINT(PCTVAR): data _null_;&lt;BR /&gt;MPRINT(PCTVAR): set a;&lt;BR /&gt;SYMBOLGEN: Macro variable NOTE resolves to hp&lt;BR /&gt;SYMBOLGEN: Macro variable NOTE resolves to hp&lt;BR /&gt;MPRINT(PCTVAR): array hp_p_ hp_p_:;&lt;BR /&gt;SYMBOLGEN: Macro variable NOTE resolves to hp&lt;BR /&gt;MPRINT(PCTVAR): do over hp_p_;&lt;BR /&gt;SYMBOLGEN: Macro variable NOTE resolves to hp&lt;BR /&gt;SYMBOLGEN: Macro variable NOTE resolves to hp&lt;BR /&gt;MPRINT(PCTVAR): call symputx(vname(hp_p_), hp_p_, 'g');&lt;BR /&gt;MPRINT(PCTVAR): end;&lt;BR /&gt;MPRINT(PCTVAR): run;&lt;/P&gt;&lt;P&gt;NOTE: There were 1 observations read from the data set WORK.A.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.02 seconds&lt;BR /&gt;cpu time 0.03 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;MPRINT(PCTVAR): proc sql;&lt;BR /&gt;MPRINT(PCTVAR): drop table a;&lt;BR /&gt;NOTE: Table WORK.A has been dropped.&lt;BR /&gt;MPRINT(PCTVAR): quit;&lt;BR /&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;MLOGIC(PCTVAR): %PUT "p_5=&amp;amp;&amp;amp;&amp;amp;note._p_5. p_50=&amp;amp;&amp;amp;&amp;amp;note._p_50. p_95=&amp;amp;&amp;amp;&amp;amp;note._p_95."&lt;BR /&gt;SYMBOLGEN: Macro variable NOTE resolves to hp&lt;BR /&gt;SYMBOLGEN: Macro variable NOTE resolves to hp&lt;BR /&gt;SYMBOLGEN: Macro variable NOTE resolves to hp&lt;BR /&gt;"p_5=&amp;amp;&amp;amp;hp_p_5. p_50=&amp;amp;&amp;amp;hp_p_50. p_95=&amp;amp;&amp;amp;hp_p_95."&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 01:27:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790788#M32542</guid>
      <dc:creator>hellohere</dc:creator>
      <dc:date>2022-01-19T01:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Sack Overflow ?!</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790790#M32543</link>
      <description>You probably submitted some code without the proper terminations. Restart SAS in a new session and start again to reset it or try the magic string. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/iml/2013/08/19/errors-that-cause-sas-to-freeze.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2013/08/19/errors-that-cause-sas-to-freeze.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/Programming-1-and-2/magic-string/td-p/681381" target="_blank"&gt;https://communities.sas.com/t5/Programming-1-and-2/magic-string/td-p/681381&lt;/A&gt;</description>
      <pubDate>Wed, 19 Jan 2022 01:44:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790790#M32543</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-01-19T01:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Sack Overflow ?!</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790890#M32550</link>
      <description>&lt;P&gt;A "Sack Overflow" is something I would expect to happen in the NFL, especially now that it's playoff time &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SCNR&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 13:55:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Stack-Overflow/m-p/790890#M32550</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-01-19T13:55:32Z</dc:date>
    </item>
  </channel>
</rss>

