[prev in list] [next in list] [prev in thread] [next in thread]
List: sas-l
Subject: Re: How to compare a macro variable with a certain value in a
From: "Fehd, Ronald J" <RJF2 () CDC ! GOV>
Date: 2005-02-28 19:32:54
[Download RAW message or body]
thanx, Harry
I'm definitely behind on my manual reading!
<sigh>
so many manuals, so little time! LOL
Ron Fehd the behind the times on -some- macro issues
macro maven CDC Atlanta GA USA RJF2 at cdc dot gov
> -----Original Message-----
> From: Harry Droogendyk
> In the following statement, the %IF-%THEN statement uses
> %BQUOTE to prevent an error if the macro variable STATE
> resolves to OR (for Oregon), which the macro processor would
> interpret as the logical operator OR otherwise:
>
> %if %bquote(&state)=OR %then %put Oregon Dept. of Revenue;
> Note: This example works if you use %STR--but it is not
> robust or good programming practice. Because you cannot
> guarantee what &STATE is going to resolve to, you need to use
> %BQUOTE to mask the resolution of the macro variable at
> execution time, not the name of the variable itself at compile time.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic