1.What is difference between symget and & in sas?
2.what is difference between callsymput and %let?



1.What is difference between symget and & in sas? 2.what is difference between callsymput and %..

Answer / somnath

=> Symget is used to resolve macro variables in data step
and & is used to resolve macro variable in macro processing.
For example, if you have 10 macro variables name1-name10
which contains 10 names and you want to get a particular
name in a data step then you can use symget, not &.
data rank;
i=4;
run;

data name;
set rank;
name=symget('name' || left(put(i, 8.)));
run;

=> The same concept applies for call symput.

The main idea is that the routines symget and symput are
executed at sas run-time where & and %let executes at macro
run time, much before that sas executes it.

Is This Answer Correct ?    17 Yes 0 No

Post New Answer

More Programming Languages AllOther Interview Questions

what is the basic and unique feature of dotnet

0 Answers   HCL,


what is oops?

4 Answers   Satyam,


why main() method should not return any value

2 Answers   Accenture,


What is a dialog based program

1 Answers  


how to check single or double byte in struts

0 Answers  






what are the missinschema properties and should we pass primary key in select command

0 Answers  


What are the Short cut Keys of Tally ERP?

0 Answers  


what is best way to create a Thread class & why?

0 Answers  


what will we require to build project with the help of oracle

0 Answers  


why you have to became a software developer?

2 Answers  


I would like to know what is Intellimatch and some interview questions which could be asked related to Intellimatch.

3 Answers  


diffrence between oracle apps , .NET , SAP

0 Answers  


Categories