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
what is slowly changing dimension? : Sas-di
what is hash files in sas and why we are using this one in sas?
what is sas business intelligence? : Sas-bi
How necessary is it to be creative in your work?
what is information maps?
What is the use of function Proc summary?
How we can call macros with in data step? : sas-macro
What are the features of SAS?
how many display types available in sas bi dashboard? : Sas-bi
What are the parameters of scan function?
In sas, what are the areas that you are most interested in? : sas-grid-administration
how does sas handle missing values in a merge? : Sas programming
What is the difference between the proc sql and data step?
Explain translate function?
what is hierarchy flattening? : Sas-di