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

Which command is used to save logs in the external file?

0 Answers  


Explain what is SAS informats?

0 Answers  


What would the following datastep do? Data _null_; Set Dist end=eof; Call Symput("xx"!!left(put(_n_,2.)),&dimension); If EOF then Call Symput('numrows',left(put(_n_,2.))); Run; dimension is a macro variable that is being passed here

2 Answers  


Have you used macros? For what purpose you have used? : sas-macro

0 Answers  


what is program data vector? : Sas-administrator

0 Answers  






What is LOGICAL VARIABLES in SAS.And how it can be used..Can anyone support..???

3 Answers  


How would you identify a macro variable? : sas-macro

0 Answers  


what is the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming

0 Answers  


What is difference between Global n Local Macro Variables..?

6 Answers   TCS,


What are some problems you might encounter in processing missing values? In Data steps? Arithmetic? Comparisons? Functions? Classifying data?

1 Answers   Quintiles,


what is portability of sas programmes?

2 Answers   Capital One,


How necessary is it to be creative in your work?

0 Answers   Oracle,


Categories