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

In mainframe SDSF, Can we copy the list of jobs currently executing in SDSF in to a seperate DATASET...?

1848


why we use abstract word in abstract window toolkit in java language.

1767


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

1626


what is client server & server? What r types of Joins? explsin it! which types of indexex in sql server? what is triggers?

1521


what will we require to build project with the help of oracle

1388






Difference between delegates and Events?

1714


why we use abstract in awt?

1560


I HAVE DONE TESTING TOOLS COURSE,NOW I AM FRESHER,I AM NOT GETTING ANY CALLS,I WANT TO DO THE PROJECT ,WHERE I HAVE TO MEET TO DO THE PROJECT,I AM GOING WITH FAKE EXPERIENCE,SO WHAT I HAVE TO DO.

4302


Write a pseudo code to evaluate a number to any base given (2...16) based on the input. Number greater than 9 should be given as A-F for 10-15.

2083


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

2058


I need source code for Enrollment System using Visual Basic 6.0/2008 database MS Access 2007 for my school thesis project...please help me..kindly send in my email jpinedamcp@gmail.com

1583


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 ?

3214


what are the differences between CONS, LIST, and APPEND

4762


A good website has the following conditions It should be interactive. It should contain at least 20 images. Title cannot be null and should contain at least 10 letters other than spaces and hyphen (-). The keywords should contain atleast three among the following list : "design", "Graphics", "lovely", "beautiful", "amazing" and "mesmerising" Write a method: boolean isGoodWebsite(boolean isInteractive, int numOfImages, String title,String keywords[]) isInteractive whether the site is interactive or not numOfImages Number of images on the website title Title of the website keywords Array of keywords in the website.

1783


What are the tasks performed by a Team Lead

2337