how we can call macros with in data step?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the features of base sas system?

783


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

788


Which command is used to perform sorting in sas program?

775


What is the difference between %local and %global? : sas-macro

852


what is the difference between infile and input? : Sas-administrator

833


what is sas and what are the functions? : Sas-administrator

725


What is the use of stop statement?

807


What is the role of sas grid administrator? : sas-grid-administration

1044


explain the concepts and capabilities of business object? : Sas-bi

716


what are sas bi dashboard components? : Sas-bi

846


What is the maximum length of the macro variable? : sas-macro

838


What do the PUT and INPUT functions do?

990


Define run-group processing?

775


If you use a symput in a data step, when and where can you use the macro variable? : sas-macro

804


Explain the difference between informat and format with an example.

907