<?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: please explain %_eg_whereparam(....) for me. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/823533#M325171</link>
    <description>&lt;P&gt;Many thanks. It looks like there are no other options that I've missed then but I don't think I understand SAS code well enough to see exactly how to use this from the code (especially as it isn't commented at all).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll check the SAS EG docs again but I can't say I'm hopeful.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jul 2022 15:25:58 GMT</pubDate>
    <dc:creator>Martin_Bryant</dc:creator>
    <dc:date>2022-07-15T15:25:58Z</dc:date>
    <item>
      <title>please explain %_eg_whereparam(....) for me.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/446376#M111987</link>
      <description>&lt;P&gt;I'm trying to understand what the %_eg_whereparam means in the context of trying to create a prompt in SAS EG&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What does the syntax mean exactly?&lt;/P&gt;
&lt;P&gt;For example, a code would be:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Select 
* 
FROM Table t1
WHERE %_eg_whereparam(people.co, Companies, IN, Type=S)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know Type = S means string, but what about the first 2 positions?&amp;nbsp; Is it table and column?&lt;/P&gt;
&lt;P&gt;Also, if I have this %_eg_whereparam, do not need a where statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Select
*
From Table t1
where
Companies = 'A'
AND %_eg_whereparam(people.co, companies, IN, Type = S&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Mar 2018 23:22:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/446376#M111987</guid>
      <dc:creator>mrdlau</dc:creator>
      <dc:date>2018-03-16T23:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: please explain %_eg_whereparam(....) for me.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/446407#M111993</link>
      <description>&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sastraining/2012/03/14/three_examples_of_egwherepara/" target="_blank"&gt;https://blogs.sas.com/content/sastraining/2012/03/14/three_examples_of_egwherepara/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a good resource. The link to the paper is at the end if you're not a fan of videos.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Mar 2018 01:48:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/446407#M111993</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-17T01:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: please explain %_eg_whereparam(....) for me.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/584446#M166466</link>
      <description>&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token macroname"&gt;%_eg_whereparam&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;people&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;co&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; Companies&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;IN&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; Type&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;S&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;First argument is the column you want to filter.&lt;/P&gt;&lt;P&gt;Second is the name of the prompt (without the ampersand)&lt;/P&gt;&lt;P&gt;Third is the "IN" operator (this is used if your prompt has multiple values)&lt;/P&gt;&lt;P&gt;Fourth is the data type, in this case, string&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 07:22:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/584446#M166466</guid>
      <dc:creator>sustagens</dc:creator>
      <dc:date>2019-08-28T07:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: please explain %_eg_whereparam(....) for me.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/823523#M325168</link>
      <description>&lt;P&gt;The videos seem to have vanished (for me at least) and the paper gives only limited information.&lt;BR /&gt;&lt;BR /&gt;Does anyone have a proper piece of documentation for this? Something that fully defines all parameters and options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have to say that generally SAS documentation is the worst I've ever come across as a developer and I can't find anything at all for this particular item.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 14:51:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/823523#M325168</guid>
      <dc:creator>Martin_Bryant</dc:creator>
      <dc:date>2022-07-15T14:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: please explain %_eg_whereparam(....) for me.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/823527#M325169</link>
      <description>&lt;P&gt;You need to look at the Enterprise Guide documentation as that is the SAS application that is defining that macro.&amp;nbsp; It is NOT part of the BASE (aka FOUNDATION) SAS product, so you cannot find the macro definition in the normal autocall libraries where SAS stores the macros it provides.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found this page that seems to have the source code, not clear if it is up to date.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/downloads/package.htm?pid=2595" target="_blank"&gt;https://support.sas.com/downloads/package.htm?pid=2595&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 15:03:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/823527#M325169</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-07-15T15:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: please explain %_eg_whereparam(....) for me.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/823533#M325171</link>
      <description>&lt;P&gt;Many thanks. It looks like there are no other options that I've missed then but I don't think I understand SAS code well enough to see exactly how to use this from the code (especially as it isn't commented at all).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll check the SAS EG docs again but I can't say I'm hopeful.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 15:25:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/823533#M325171</guid>
      <dc:creator>Martin_Bryant</dc:creator>
      <dc:date>2022-07-15T15:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: please explain %_eg_whereparam(....) for me.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/823537#M325172</link>
      <description>&lt;P&gt;The macro just emit a string of characters that look like a condition expression.&lt;/P&gt;
&lt;P&gt;So to play around with it just use it in a %PUT statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let mvar=XXX;
%put %_eg_WhereParam( varname, mvar, EQ, TYPE=S );
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Results&lt;/P&gt;
&lt;PRE&gt;varname EQ       "XXX"
&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Jul 2022 15:38:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/823537#M325172</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-07-15T15:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: please explain %_eg_whereparam(....) for me.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/823538#M325173</link>
      <description>&lt;P&gt;Note that in addition to not including comments the macro is not that smart.&amp;nbsp; If all of the macro variables that are created by the Enterprise Parameter tool do not exist it can generate invalid code and/or warning messages.&lt;/P&gt;
&lt;PRE&gt;1921  %let mvar=XXX;
1922  %put %_eg_WhereParam( varname, mvar, IN, TYPE=S );
varname IN       "XXX"
1923  %let mvar=XXX;
1924  %let mvar_count=1;
1925  %put %_eg_WhereParam( varname, mvar, IN, TYPE=S );
varname IN ("XXX")
1926  %let mvar=XXX;
1927  %let mvar_count=2;
1928  %put %_eg_WhereParam( varname, mvar, IN, TYPE=S );
WARNING: Apparent symbolic reference MVAR1 not resolved.
WARNING: Apparent symbolic reference MVAR1 not resolved.
WARNING: Apparent symbolic reference MVAR1 not resolved.
WARNING: Apparent symbolic reference MVAR1 not resolved.
WARNING: Apparent symbolic reference MVAR2 not resolved.
WARNING: Apparent symbolic reference MVAR2 not resolved.
WARNING: Apparent symbolic reference MVAR2 not resolved.
WARNING: Apparent symbolic reference MVAR2 not resolved.
(varname IN (         "&amp;amp;mvar1",         "&amp;amp;mvar2"))

&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 15:44:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/823538#M325173</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-07-15T15:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: please explain %_eg_whereparam(....) for me.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/823768#M325309</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;The macro just emit a string of characters that look like a condition expression.&lt;/P&gt;
&lt;P&gt;So to play around with it just use it in a %PUT statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let mvar=XXX;
%put %_eg_WhereParam( varname, mvar, EQ, TYPE=S );
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Results&lt;/P&gt;
&lt;PRE&gt;varname EQ       "XXX"
&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;I'm sorry, but this doesn't help me understand which parameters I can add to the call though, does it? I need something to tell me what options I can pass and with which values and what those values mean. Maybe %_eg_WhereParam( varname, mvar, EQ, TYPE=S, JONNY=FISH ); is a valid option, but I'll never know unless I'm told somewhere.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 07:17:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/823768#M325309</guid>
      <dc:creator>Martin_Bryant</dc:creator>
      <dc:date>2022-07-18T07:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: please explain %_eg_whereparam(....) for me.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/823769#M325310</link>
      <description>&lt;DIV class="forum-subj-action"&gt;
&lt;DIV class="MessageSubject "&gt;
&lt;DIV class="MessageSubjectIcons "&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV class="lia-message-subject"&gt;Re: please explain %_eg_whereparam(....) for me.&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="forum-post"&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV class="post-info"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/446407#M111993" target="_blank"&gt;&lt;SPAN class="message-date-friendly" title="Posted by Reeza  
 03-16-2018 09:48 PM"&gt;Posted 03-16-2018 09:48 PM&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN class="message-date-views"&gt;(5494 views)&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="reply-author"&gt;&amp;nbsp;|&amp;nbsp;&amp;nbsp; In reply to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="A reply to mrdlau's message from 03-16-2018" href="https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/446376#M111987" target="_blank"&gt;mrdlau&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;DIV id="bodyDisplay_b9809a2ed7d0c4" class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sastraining/2012/03/14/three_examples_of_egwherepara/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://blogs.sas.com/content/sastraining/2012/03/14/three_examples_of_egwherepara/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a good resource. The link to the paper is at the end if you're not a fan of videos.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Unfortunately, the videos appear to have been removed.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 18 Jul 2022 07:19:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/823769#M325310</guid>
      <dc:creator>Martin_Bryant</dc:creator>
      <dc:date>2022-07-18T07:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: please explain %_eg_whereparam(....) for me.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/823903#M325355</link>
      <description>The arguments for the _eg_WhereParam macro include the following:&lt;BR /&gt;1. Column, defines the evaluated variable&lt;BR /&gt;2. Parm, must equal the name of the Prompt&lt;BR /&gt;3. Operator, the condition of the variable to prompt evaluation. Valid options include:&lt;BR /&gt;Between, Not Between EG, =, NE, &amp;lt;&amp;gt;, IN, NOT IN&lt;BR /&gt;Note that when using between and not between, a range prompt is required or an inclusion of the&lt;BR /&gt;MAX= value.&lt;BR /&gt;4. Type, type of variable. Valid options include:&lt;BR /&gt;String or S, Date or D, Time or T, Datetime or DT&lt;BR /&gt;Default Value is String</description>
      <pubDate>Mon, 18 Jul 2022 17:27:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/823903#M325355</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-07-18T17:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: please explain %_eg_whereparam(....) for me.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/823905#M325356</link>
      <description>&lt;P&gt;Have you emailed tech support to ask by the way? They may have the source code or more documentation to provide?&lt;/P&gt;
&lt;P&gt;One of the benefits of SAS is the ability to contact tech support.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 17:33:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/823905#M325356</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-07-18T17:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: please explain %_eg_whereparam(....) for me.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/823927#M325369</link>
      <description>&lt;P&gt;My guess is you will have to resort to reading the macro definition.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 18:27:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/823927#M325369</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2022-07-18T18:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: please explain %_eg_whereparam(....) for me.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/824046#M325407</link>
      <description>&lt;P&gt;Yes. I've looked it over and got what I need, but I don't claim to fully understand it at all.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 08:14:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/824046#M325407</guid>
      <dc:creator>Martin_Bryant</dc:creator>
      <dc:date>2022-07-19T08:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: please explain %_eg_whereparam(....) for me.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/824049#M325408</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;and that's my point. According to the code that is linked &lt;A title="_eg_whereparam macro source code" href="https://support.sas.com/downloads/package.htm?pid=2595#" target="_blank" rel="noopener"&gt;here&lt;/A&gt;, there are more options that that. This is the macro header...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;/* Build where clauses from stored process parameters */
%macro _eg_WhereParam( COLUMN, PARM, OPERATOR, TYPE=S, MATCHALL=_ALL_VALUES_, MATCHALL_CLAUSE=1, MAX= , IS_EXPLICIT=0, MATCH_CASE=1);
&lt;/PRE&gt;
&lt;P&gt;But these aren't explained anywhere and the code itself isn't commented so you have to really understand macros well in order to understand it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway hope this discussion helps others understand&amp;nbsp;&lt;SPAN&gt;%_eg_whereparam better.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 08:37:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/824049#M325408</guid>
      <dc:creator>Martin_Bryant</dc:creator>
      <dc:date>2022-07-19T08:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: please explain %_eg_whereparam(....) for me.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/824172#M325451</link>
      <description>&lt;P&gt;Fair enough, but like I mentioned, one of the pluses for SAS is tech support and the ability to have that actioned and added to the docs. You can also post in the SAS Ballotware as a request as well.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 15:29:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/824172#M325451</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-07-19T15:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: please explain %_eg_whereparam(....) for me.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/824350#M325552</link>
      <description>&lt;P&gt;I think this is a fair critique.&amp;nbsp; SAS documentation is excellent.&amp;nbsp; But I do feel like with SAS 9 clients (EG, DI Studio, Stored Processes), SAS has added in a lot of macros to provide functionality (%_eg_whereparam, %stpbegin, etc) without always documenting them in the same way they would document a new PROC or STATEMENT.&amp;nbsp; Some of them you can't even find the source code for. My guess is many of these were designed to be used 'behind the scenes' by SAS developers, or used by SAS clients written by SAS developers.&amp;nbsp; It feels like they weren't really written with the expectation that us folks outside of SAS would start using them in our own code.&amp;nbsp; But, that was probably short-sighted.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If you search lexjansen.com for %_eg_whereparam, you will find papers written by the SAS community that explain it a bit more, including some by SAS employees, e.g.&amp;nbsp;&lt;A href="https://support.sas.com/resources/papers/proceedings11/309-2011.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings11/309-2011.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 13:18:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/please-explain-eg-whereparam-for-me/m-p/824350#M325552</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2022-07-20T13:18:16Z</dc:date>
    </item>
  </channel>
</rss>

