Can you use a macro within another macro? If so how would
SAS know where the current acro ended and the new one
began?
Answer Posted / kiran
Yes, we can use a macro with in another macro
for example:
%MACRO REPORT; ---MACRO
statement 1;
statement 2;
....
....
%MACRO REPORT1();--BEGINING OF NEW MACRO "REPORT 1" WITH
IN "REPORT" MACRO
%MEND REPORT1;---STATEMENT TO TELL THE END OF REPORT1 MACRO
%MEND REPORT;----STATEMENT TO TELL THE END OF REPORT MACRO
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
How is character variable converted into numeric variable and vice versa?
explain the use of % includes a statement in sas? : Sas-administrator
Did you used proc test? when?
How does the internal authentication work in sas? : sas-grid-administration
What is the difference between order and group variable in proc report?
i have a dataset with 100 obs i want to generate title from 20th obs onwards with total observations. that should contain 100 obs.dont use firstobs and dnt split the data. use dataset block or proc report? how can we genarate;
What is auto call macro and how to create a auto call macro? What is the use of it? How to use it in sas with macros? : sas-macro
what are informats in sas? : Sas-administrator
State the difference between INFORMAT and FORMAT ?
Mention what are the data types does SAS contain?
what are sas/access and sas/connect? : Sas programming
What is the difference between proportion and average?
What is interleaving in SAS?
In sas, what are the areas that you are most interested in? : sas-grid-administration
Can you execute macro within another macro? : sas-macro