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 / raghu kishor. k

proc contents data= dsname out=o/pdsname;
run;

proc sql; select name into: macrovariablename separated
by ' 'from o/pdsname;
quit;

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the function of output statement in a SAS Program?

813


do you need to know if there are any missing values? : Sas programming

774


Did you used proc test? when?

1800


explain the proc in sas? : Sas-administrator

833


What will calendar procedure do?

830


what are the component of range? : Sas-bi

819


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

1850


What do the mod and int function do? : Sas programming

822


What is Linear Regression?

890


What is interleaving in SAS?

861


What is the difference between INPUT and INFILE ?

983


how does sas handle missing values in sort order? : Sas programming

721


Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?

1700


describe about metadata object? : Sas-di

820


What do you know about sas data set?

807