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 are the new features included in the new version of SAS Programming Language?
what can you learn from the sas log when debugging? : Sas programming
How do you control the number of observations and/or variables read or written? Approximately what date is represented by the SAS date value of 730?
if the Id has more then two transcatiion then show the first observation, IF Id has only two observation then It show both the observation
What are the applications primarily used by business analyst? : Sas-bi
how do you test for missing values? : Sas programming
what cause the "error: connect:" and "error in the libname statement" when there weren't any such problems?
Approximately what date is represented by the SAS date value of 730?
What system options would you use to help debug a macro? : sas-macro
What is the order of application for output data set options, input data set options and SAS statements?
what is the use of proc sql? : Sas programming
What is the use of PROC gplot?
Explain bmdp procedure?
What are common programming errors committed in sas
Explain how you can debug and test your SAS program?