Can you use a macro within another macro? If so how would
SAS know where the current acro ended and the new one
began?



Can you use a macro within another macro? If so how would SAS know where the current acro ended an..

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

Post New Answer

More SAS Interview Questions

what is difference in window SAS & Unix SAS.....how do define working environment in both???

1 Answers   JPMorgan Chase,


What are the new features included in the new version of SAS Programming Language?

0 Answers  


what are scrubing procedures in SAS?

1 Answers   Oracle,


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.

10 Answers   Accenture,


Tell different ways to create Macrovarible?

3 Answers   Accenture, PharmaNet i3,






what is the difference btw proc means and proc univariate?

8 Answers   HSBC, TCS,


What is the use of %include statement?

0 Answers  


Give some examples where proc report’s defaults are same as proc print’s defaults?

0 Answers  


I have a dataset with variables empid and doj how to calculate retirement age?

1 Answers  


What is PROC in SAS?

0 Answers  


What is program data vector (pdv) and what are its functions?

0 Answers  


How to read an input file in sas?

0 Answers  


Categories