how we can call macros with in data step?

Answers were Sorted based on User's Feedback



how we can call macros with in data step?..

Answer / kishore

%macroname;
this is way of calling macro but call symput/symget r used to create macro variable from data step variable/symget vice versa

Is This Answer Correct ?    0 Yes 0 No

how we can call macros with in data step?..

Answer / daya

by using symput command

Is This Answer Correct ?    3 Yes 7 No

how we can call macros with in data step?..

Answer / ramana

We can call the macro with CALLSYMPUT

Is This Answer Correct ?    3 Yes 7 No

how we can call macros with in data step?..

Answer / as

using symget

data one;
symget &macro1;
run;

Is This Answer Correct ?    0 Yes 5 No

how we can call macros with in data step?..

Answer / payal

Use callsymput in data step.
EX:

Data _null_;
set group;
call symput('_grpname',group name);
run;

Is This Answer Correct ?    2 Yes 8 No

how we can call macros with in data step?..

Answer / gurvinder singh

Using & (Ampersand)

Is This Answer Correct ?    0 Yes 8 No

how we can call macros with in data step?..

Answer / ram pabba

%include statement can be used to call a macro within a
data setp.

or

call a macro with %macro-name (only if the) in the datasetp
(condition that this marco exists in the central location
where it is defiened).

Please anybody suggest if these are right answers.

Is This Answer Correct ?    0 Yes 8 No

Post New Answer

More SAS Interview Questions

Which statement does not perform automatic conversions in comparisons?

0 Answers  


What is substr function?

0 Answers  


How to write duplicate records into a separate dataset using sort?

4 Answers   HSBC,


how to read raw data in sas. Do it manually and throw the programming.

1 Answers   WNS,


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,






What is the purpose of the trailing @? The @@? How would you use them?

10 Answers   Accenture,


what is the purpose of _error_? : Sas programming

0 Answers  


why is the use of Retrive statement and give me with example?

1 Answers   ME,


Describe crosslist option in tables statement?

0 Answers  


how does sas handle missing values in functions? : Sas programming

0 Answers  


differnce between 8.2 and 9.1.3

1 Answers  


What is the good sas programming practices for processing large data sets?

0 Answers  


Categories