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

In PROC PRINT, can you print only variables that begin with the letter “A”?

8 Answers  


what are different type of sas servers ? On which server does the sas code execute ?

4 Answers   TCS,


how does sas handle missing values in assignment statements? : Sas programming

0 Answers  


How the date 04oct1994 is stored in SAS,not only give the answer explain in brief?

5 Answers  


Difference between sum function and using “+” operator?

0 Answers  


Intern stastical programmer written test

0 Answers  


explain the key concept of sas? : Sas-administrator

0 Answers  


what is broad cast agent? : Sas-bi

0 Answers  


what is picture format? give any one example?

3 Answers   Parexel,


what is sas data set?

0 Answers  


data voter; input Age Party : $1. (Ques1-Ques4)($1. + 1); datalines; 23 D 1 1 2 2 45 R 5 5 4 1 67 D 2 4 3 3 39 R 4 4 4 4 19 D 2 1 2 1 75 D 3 3 2 3 57 R 4 3 4 4 ; Idont understand what the (Ques1-Ques4)($1. + 1) means. I have seen (Ques1-Ques4)(4*$1.), but what is (Ques1-Ques4)($1. + 1)? Appreciate all help Thanks

3 Answers  


what are sas/access and sas/connect? : Sas programming

0 Answers  


Categories