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

how to intersect the tables by using PROC MIXED?

1 Answers   CitiGroup,


. Which date advances a date, time or date/time value by a given interval?

8 Answers  


What is the difference between match merge and one to one merge?

0 Answers  


Do you use PROC REPORT or PROC TABULATE? Which do you prefer? Explain.

3 Answers  


Can you explain the process of calendar?

0 Answers  






how can you put a "trace" in your program? : Sas programming

0 Answers  


One way of creating a new variable in Macros is by % Let....What is the other way..?

5 Answers   TCS,


i have a null dataset with 20 variables. i want to upload the variables which contain name like a or k or anything in another dataset.how can we create the dataset?

3 Answers   L&T,


how does sas handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, procs? : Sas programming

0 Answers  


what is the need of INDEX in datasets?

6 Answers   CitiGroup,


How would you determine the number of missing or nonmissing values in computations?

0 Answers  


What function CATX syntax does?

0 Answers  


Categories