1.What is difference between symget and & in sas?
2.what is difference between callsymput and %let?
Answer Posted / 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 View All Answers
What is the difference between DECISION COVERAGE(DC) and MODIFIED CONDITION/DECISION COVERAGE(MCDC)?
What is the first message line that any language learning prints on the screen? and why?
what is delegate and delegation model give the real live example on delegate model
where is available in this mantis toturials?
Compare any 4 software development life cycle paradigms with each other. Indicate at least one application for each of the paradigms that are suitable to developed using that paradigm.
What is the merger sort principle and its time complexity.
what is difference between object oriented programming structure and object oriented programming system?
How do you initialize a static member of a class with return value of some function?
Given a cube of size n*n*n (i.e made up of n^3 smaller cubes), find the number of smaller cubes on the surface. Extend this to k-dimension.
< DL Compact > tag is used for
Explain the types of operations? Draw the figure for shift and rotate operations?
what is an INI file?
How to call dll API sub routine in VB Form.
Write a function which accepts a sentence as input parameter.Each word in that sentence is to be reversed. Space should be there between each words.Return the sentence with reversed words to main function and produce the required output. for eg:- i/p: jack jill jung kill o/p: kcaj llij gnuj llik
1. Write a program to create a sentence at runtime and count number of vowels in it ? 2. Write a program to get a string and to convert the 1st letter of it to uppercase ?