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 type of exceptions & problems are faced in production time at java technology?

0 Answers   CTS,


Explain polymorphism. Provide an example.

0 Answers   Amazon,


how many trailing zeroes are there in 100! (100 factorial)?

5 Answers  


how do find the user exit for selected feild whatis the process and can u plz explain it

0 Answers  


What is the difference between WebIntelligence and Designer in creating universes?

0 Answers  






How to connect the .accdb database file of microsoft access to the Visual Basic 6.0 forms?

0 Answers  


< No Frames > tag is used for

0 Answers  


How to display questions one by one in jsp and I wants to store the answers in my database?

0 Answers  


hi all, i need ur help in preparing a sql which performs scd2, i mean i have a scd2 mapping i need a sql which can give me same result as scd2 mapping, SRC table: cust_no, loc 01 abc 02 xyz TGT table: pm_ky cust_no loc current_flag 1 01 abc Y 2 02 xyz Y cust 1 has changed his loc to xyz then it loads into TGT table as below, pm_ky cust_no loc current_flag 1 01 abc N 2 02 xyz Y 3 01 xyz Y i need sql to get the above result, hope got me question, Any suggestion will be appreciate.. thanks, Vinod

0 Answers  


hi i m deepak my shedule for NIC pi is 17 Apr please contact me if anybody has interview on same day or give me some idea who have faced

0 Answers  


Define distributed queries. can you explain me as soon as possible

0 Answers   HCL,


Difference of Console, web & windows applications?

0 Answers  


Categories