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 do i read multiple spaces in datasets? eg: vijaya raghava perumal.I tried with using & but it workss if its vijaya raghava but not for raghava perumal.how to do this?

8 Answers   Wipro, Xansa,


What are the 3 components in sas programming?

0 Answers  


How do you delete duplicate observations in sas?

0 Answers  


SAS using companies in chennai

1 Answers  


Tell e how how dealt with..

0 Answers   Wipro,






Have you been involved in editing the data or writing data queries?

1 Answers   BioServe, Oracle, Sasken,


What does error:1 mean?

8 Answers   Accenture,


Can you excute a macro within a macro? Describe.

3 Answers  


Name statements that are recognized at compile time only?

3 Answers   Accenture,


How we can create SAS USER DEFINED CODE?

0 Answers  


What are the five ways to do a table lookup in sas? : sas-grid-administration

0 Answers  


Can anyone help me about SAS Realtime scenarios in Clinical field

0 Answers  


Categories