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
how to read the variables in sas? : Sas-administrator
What is the maximum length of the macro variable? : sas-macro
What is the difference between INPUT and INFILE ?
How do you debug and test your SAS programs?
how sas deals with business intelligence? : Sas-bi
What is maximum number of rows and cols can be handled in SAS?
Describe the function and untility of the most difficult SAS macro that you have written.
What can be the size of largest dataset in SAS?
what do you mean by data staging area? : Sas-di
Explain proc univariate?
Explain how merging helps to combine data sets.
Describe the ways in which you can create macro variables?
Can you execute a macro within a macro? Describe. : sas-macro
Mention what is SAS data set?
what are the component of range? : Sas-bi