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

Name any two sas spawners? : sas-grid-administration

0 Answers  


How to convert a numeric variable to a character variable?

0 Answers  


CHOOSE ANY ONE OF THE PROCEDURE FOLLOWING TO GENERATE THE REPORTS? HOW CAN YOU SAY IT IS BETTER THAN THE OTHER? AND DEFERENCIATE THESE TWO ? 1). REPORT PROCEDURE 2). TABULATE PROCEDURE

4 Answers   CybAge,


how does sas handle missing values in a merge? : Sas programming

0 Answers  


Differentiate between sas functions and sas procedures.

0 Answers  






What is the difference between an informat and a format. Name three informats or formats.

6 Answers  


how many types prompting framework can be broken down to? : Sas-bi

0 Answers  


How do you add a number to a macro variable?

3 Answers  


What are the main differences between sas versions 8.2, 9.0, 9.1?

4 Answers  


Explain the message 'Merge has one or more datasets with repeats of by variables'.

5 Answers  


If you’re not wanting any SAS output from a data step, how would you code the data statement to prevent SAS from producing a set?

8 Answers   Accenture,


please can you tell me that in companies sas work are doing by through sas coding or sas wizard ??

0 Answers  


Categories