how we can call macros with in data step?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
explain the difference between proc means and proc summary?
what is the SAS/ACCESS and SAS/CONNECT?
9 Answers Accenture, iFlex, TCS,
There is a river notoriously known for it?s large crocodile population. With ease, how do you safely cross it?
how do u validate sas program
What statement do you code to tell SAS that it is to write to an external file?
Which is the best training institute for SAS in hyderabad.
112 Answers Stansys Software Solutions,
What is a post baseline?
how does sas handle missing values in procs? : Sas programming
Briefly describe 5 ways to do a "table lookup" in sas.
What are common programming errors committed in sas
what are input dataset and output dataset options?
We have a string like this "kannafromsalembut" ,from this i want to get only "fromsal" (but one condition with out using substring function)here we can not use scan because in the given string there is no delimeter? so give ans without out using substring ?