Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How will you assign all the variables of an dataset into a
macro variable separated by a space? For example if a
dataset has variables A,B,C. Assign them to a macro variable
X as
X=A B C

Answer Posted / somanath

PROC CONTENTS DATA=SASHELP.CLASS OUT=T VARNUM;
RUN;

PROC SQL NOPRINT;
SELECT NAME INTO : Y separated BY ' ' FROM T ;
QUIT;



%put &Y;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to read the variables in sas? : Sas-administrator

1070


What is the maximum length of the macro variable? : sas-macro

1154


What is the difference between INPUT and INFILE ?

1374


How do you debug and test your SAS programs?

1610


how sas deals with business intelligence? : Sas-bi

1103


What is maximum number of rows and cols can be handled in SAS?

1671


Describe the function and untility of the most difficult SAS macro that you have written.

2274


What can be the size of largest dataset in SAS?

1275


what do you mean by data staging area? : Sas-di

1194


Explain proc univariate?

1106


Explain how merging helps to combine data sets.

1112


Describe the ways in which you can create macro variables?

1251


Can you execute a macro within a macro? Describe. : sas-macro

1153


Mention what is SAS data set?

1177


what are the component of range? : Sas-bi

1147