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


Please Help Members By Posting Answers For Below Questions

what is slowly changing dimension? : Sas-di

628


what is hash files in sas and why we are using this one in sas?

1734


what is sas business intelligence? : Sas-bi

592


How necessary is it to be creative in your work?

2024


what is information maps?

1619






What is the use of function Proc summary?

657


How we can call macros with in data step? : sas-macro

619


What are the features of SAS?

583


how many display types available in sas bi dashboard? : Sas-bi

646


What are the parameters of scan function?

625


In sas, what are the areas that you are most interested in? : sas-grid-administration

644


how does sas handle missing values in a merge? : Sas programming

560


What is the difference between the proc sql and data step?

667


Explain translate function?

638


what is hierarchy flattening? : Sas-di

622