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 |
Which command is used to save logs in the external file?
Explain what is SAS informats?
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
Have you used macros? For what purpose you have used? : sas-macro
what is program data vector? : Sas-administrator
What is LOGICAL VARIABLES in SAS.And how it can be used..Can anyone support..???
How would you identify a macro variable? : sas-macro
what is the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming
What is difference between Global n Local Macro Variables..?
What are some problems you might encounter in processing missing values? In Data steps? Arithmetic? Comparisons? Functions? Classifying data?
what is portability of sas programmes?
How necessary is it to be creative in your work?