Go Back   Rhinocerus > Newsgroup > Newsgroup comp.soft-sys.sas

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 07-31-2012, 11:15 AM
SASHELP
Guest
 
Posts: n/a
Default Calling a macro

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
Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

  #2 (permalink)  
Old 07-31-2012, 06:42 PM
DE HARRIS
Guest
 
Posts: n/a
Default Re: Calling a macro

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



Reply With Quote
  #3 (permalink)  
Old 07-31-2012, 07:22 PM
m.chilakamarri@gmail.com
Guest
 
Posts: n/a
Default Re: Calling a macro

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 .
Reply With Quote
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 11:55 AM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.