|
|||
|
I have a question on macro.
I have a sas macrolist.sas including two macros just as in % macro A; data --- --- % mend ; %macro B; data --- %mend ; Now from a different program for example : callmacro.sas I want to call only macro A to direct and from another program, I want to call only macro B . Please let me know if this can be done |
|
|
||||
|
||||
|
|
|
|||
|
Yes and there are two ways to do it; one using autocall the other %include. However, as someone else has written an excellent article on how to do this, I will post the link instead.
http://analytics.ncsu.edu/sesug/2009/CC019.Huang.pdf |
|
|||
|
On Tuesday, July 31, 2012 2:42:26 PM UTC-4, DE HARRIS wrote:
> Yes and there are two ways to do it; one using autocall the other %include. However, as someone else has written an excellent article on how to do this, I will post the link instead. http://analytics.ncsu.edu/sesug/2009/CC019.Huang.pdf I used %include statement and included the macro which is required . It worked ! Thanks for the reply and article . |
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|