Re: tip macro IN was: pound sign causes macro problems in Version 9.1

  • Follow


My company wrote our IN macro because its easier for our clients who may be
maintaining the programs we wrote to see something like

%if %in(&y, A B C) %then ...

than using delimters as below. Its a matter of coding clarity more than
anything else. I don't think that the syntax

%if &y IN A B C %then %do

really makes it as clear

Oh well, I haven't needed either the IN macro or to use # at my current
client that I can recall, but I'll still have to spend a few hours checking
programs.

Don

On Thu, 26 Feb 2004 16:24:44 -0500, Chang Y. Chung
<chang_y_chung@HOTMAIL.COM> wrote:

>Hi,
>
>Who needs the macro operator IN any way? I have been happy with %index,
>like:
>
>%macro find(this);
> %if %index(#a#b#c#, #&this.#) %then %put found;
> %else %put not;
>%mend;
>
>%find(b)
>found
>%find(f)
>not
>
>Frankly, I am for removing in and # all together from the macro language.
>
>Cheers,
>Chang
0
Reply don_stanley (190) 2/26/2004 9:38:50 PM


0 Replies
65 Views

(page loaded in 0.036 seconds)


Reply: