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 are the differences between CONS, LIST, and APPEND
Mainly Related to Oracle, DBMS , Oracle Stored Procedures, Functions, Oracle 9i Architecture, Redo logs..., Views,
EXPLAIN UNARY OPEARATORS
How to change the color of a cell or a row in a datagrid on mouse hover using javascript/.net
when a query is made on Logical file in DB2/400, will the records satisfying select/omit criterion be fetched from all members of physical file or only the member with same name as physical file?
design a counter with the following repeated binary sequence: 0, 1, 2, 3, 4, 5, 6, 7, 8 using JK Flip Flop.
a characteristic of a multiprogramming is? a.simultaneous exe of pgm instr 4m 2 appli b.concurrent processing of 2 r more prgms c.multiple cpu s d.all the abov
Given an array of size n. It contains numbers in the range 1 to n. Each number is present at least once except for 1 number. Find the missing number
Q1.Write a C program which asks the user for a number between 1 to 9 and shows the number. If the user inputs a number out of the specified range, the program should show an error and prompt the user for a valid input.
In loading programs into memory, what is the difference between load-time dynamic linking and run-time dynamic linking?
differences between qtp10.0 and 11.0 ?
what is throws keyword
write algo for cobol program whichuse three flat file to extract some specific information 8 marks mainframe
when we use mantis? how learn mantis?
Write a program to swap the content of two variables without using a third variable.