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
I have 3 years of work experience at a startup and recently got certified in Data Science with SAS. I need to know how to get into the analytics industry
What is the difference between reading data from an external file and reading data from an existing data set?
what are 5 ways to perform a table lookup in sas? : Sas-administrator
Tell e how how dealt with..
What do you code to create a macro? : sas-macro
What versions of SAS have you used (on which platforms)?
name some data transformation used in sas di? : Sas-di
What is the basic syntax of a sas program?
What are SAS/ACCESS and SAS/CONNECT?
what is the use of proc sql? : Sas programming
what are the component of range? : Sas-bi
What do you know about sas data set?
How substr function works in sas?
What are the ways to do a “table lookup” in sas?
For clinical entire study how many tables will create approx?