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 the effect of the options statement errors=1? : Sas programming
What are the features of SAS?
What is the good sas programming practices for processing large data sets?
Did you used proc test? when?
how to remove duplicates using proc sql?
Describe 5 ways to do a “table lookup” in SAS?
How are numeric and character missing values represented internally?
What is a macro routine?
What are the scrubbing procedures in sas?
Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?
what are input dataset and output dataset options? : Sas programming
What is the difference between reading data from an external file and reading data from an existing data set?
What is a method for assigning first.VAR and last.VAR to the BY group variable on unsorted data?
What does PROC print, and PROC contents do?
What is the difference between %put and symbolgen? : sas-macro