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 the effect of the options statement errors=1? : Sas programming

589


What are the features of SAS?

575


What is the good sas programming practices for processing large data sets?

627


Did you used proc test? when?

1574


how to remove duplicates using proc sql?

627






Describe 5 ways to do a “table lookup” in SAS?

700


How are numeric and character missing values represented internally?

1133


What is a macro routine?

2101


What are the scrubbing procedures in sas?

571


Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?

1467


what are input dataset and output dataset options? : Sas programming

561


What is the difference between reading data from an external file and reading data from an existing data set?

632


What is a method for assigning first.VAR and last.VAR to the BY group variable on unsorted data?

2004


What does PROC print, and PROC contents do?

725


What is the difference between %put and symbolgen? : sas-macro

669