adspace


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


Please Help Members By Posting Answers For Below Questions

what is class module in vb6? what it's use? with example..

2522


hi, all this is shoba m.c.a . i have learned abap but no oppurtunities right now as fresher , right now i want to learn any course on demand any one pls suggest me good course and institute in hyderabad

1885


can we extend a class having only one parameterised constructor.Suggest the process to do it.

2587


hi This is radhika.Can anyone help me to know the question papers of NATIONAL INFORMATICS CENTRE for the post of scientific officer/engineer? if anyone know plz tell me question paper pattern

2186


Bonjour, svp je veut voir comment envoyer un mail en java et comment changer le droit d'accé d'un fichier en java: de lecture en lecture/écriture et merci d'avance ;)

2317


what is the diff bw sql direct and jdbc update can't we do select and updating operation in sql direct

2244


please any one pass file aid,xpeditor and endeavor tools

2422


I am taking the bmc control m/enterprise manager 7.0 scheduling test and just wanted to see what kind of questions they would ask or if anyone has taken the test and how long it is for how many questions?

6222


Explain the types of operations? Draw the figure for shift and rotate operations?

3428


Mainly Related to Oracle, DBMS , Oracle Stored Procedures, Functions, Oracle 9i Architecture, Redo logs..., Views,

2416


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.

2912


Please forward important interview and basic questions in VB6 on my email id: usneha_16@yahoo.co.in

2118


How to get the index of the clicked field in reports in ABAP?

1774


If u need any fake experience certificate in software side, contact me at: vikramyadhav@gmail.com

8421


I want sample papers for NIC Examination. Plz send them to my mail Id das.neelam@gmail.com . Plz send it today, tomorrow i've the exam.

2110