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

Name statements that are execution only.

14 Answers   Accenture,


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

4 Answers  


What is shift table? have you ever created shift that?

2 Answers   Accenture, Clinical Research, Quintiles,


What are the analysis datasets created, and what are the new variables created in CLINICAL SAS

1 Answers   Accenture, Sciformix,


What Proc glm does?

0 Answers  






how can you get the single data set from the library(which has the number of data sets)?

3 Answers   Accenture, Deloitte,


Give an example where SAS fails to convert character value to numeric value automatically?

0 Answers  


How to get part of string form the source string without using sub string function in SAS?

3 Answers  


How do you add a number to a macro variable? : sas-macro

0 Answers  


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

6 Answers   TCS,


What is the difference between one to one merge and match merge? Give an example.

0 Answers  


What is the difference between SAS functions and procedures?

0 Answers  


Categories