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 / 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 |
what is difference in window SAS & Unix SAS.....how do define working environment in both???
What are the new features included in the new version of SAS Programming Language?
what are scrubing procedures in SAS?
How would you code a merge that will write the matches of both to one data set, the non-matches from the left-most data set to a second data set, and the non-matches of the right-most data set to a third data set.
Tell different ways to create Macrovarible?
3 Answers Accenture, PharmaNet i3,
what is the difference btw proc means and proc univariate?
What is the use of %include statement?
Give some examples where proc report’s defaults are same as proc print’s defaults?
I have a dataset with variables empid and doj how to calculate retirement age?
What is PROC in SAS?
What is program data vector (pdv) and what are its functions?
How to read an input file in sas?