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 |
In PROC PRINT, can you print only variables that begin with the letter “A”?
what are different type of sas servers ? On which server does the sas code execute ?
how does sas handle missing values in assignment statements? : Sas programming
How the date 04oct1994 is stored in SAS,not only give the answer explain in brief?
Difference between sum function and using “+” operator?
Intern stastical programmer written test
explain the key concept of sas? : Sas-administrator
what is broad cast agent? : Sas-bi
what is picture format? give any one example?
what is sas data set?
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
what are sas/access and sas/connect? : Sas programming