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

Write a Pseudo Code to find the angle between two hands of a clock for a given time.

6 Answers   Goldman Sachs, HCL,


When we delete logfiles such as screenshots how does it affect the ldf file? Ive seen huge change while adding screenshots in the ldf file but a very minor one deleting them.Please Explain

0 Answers  


what is different betweet class and interface in java?

2 Answers   Microsoft, Sun Microsystems,


Java is called as pure objerct oriented programming language, where as c++ is not completely object oriented.can any explain the detailed differenec between these two

4 Answers  


When we have more than one main function in a program how does the compiler know the starting point of the program, i mean from which main the execution or compilation of the program begins?

2 Answers   247Customer,






needs examples for black box testing and white box testing

1 Answers   CTS, IBM, Wipro,


Write code to read the records from a file and load any array of size 99?make sure that you take care of all the error conditions?

0 Answers  


What are the compilers of JAVA and .NET Programming languages?

1 Answers   HCL, Microsoft,


Plz sent me in .net 2.0 interview Question & answers?

0 Answers  


There are 2 tables: EMP : EmpId, Ename, Sal, DeptId DEPT : DeptId, Dname Write a query to find out emp names and their department names. if any emp has null in Deptid the it shows ?No Department?. Write a query to find out those department names which has no employee. Write a query to find out those employees whose salary is greater than their department?s average salary.

1 Answers   Oracle,


How many processes can listen on a single TCP/IP port?

3 Answers  


Who is providing best mainframes online training in Hyderabad

1 Answers  


Categories