|
Hi,
Use call Execute.there are a lot of examples in
archives.
HTH
Mona
--- bitstream <scott.berta@GMAIL.COM> wrote:
> I am relatively new to macros and stumped on how to
> approach this one
> (not even sure what to search for).
> 1. I read a value from a table in a host variable
> &test ( value is
> either a, b or c).
> 2. I have 3 macros, %getfile_a, %getfile_b and
> %getfile_c.
>
> Question: How do I write the code to call the macro
> based on the value
> of &test?? I have tried a data step that uses an
> if-then-else loop
>
> data _null_;
> if &test = 'a' then;
> %getfile_a else;
> if &test='b' then;
> %getfile_b else;
> if &test='c' then;
> %getfile_c;
> run;
>
> but this doesn't work (it runs all 3 macros).
>
> Thanks.
>
__________________________________________
Yahoo! DSL – Something to write home about.
Just $16.99/mo. or less.
dsl.yahoo.com
|