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
What can you learn from the SAS log when debugging?
why is sas considered self-documenting? : Sas programming
what is data governance? : Sas-di
How many data types are there in SAS?
What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?
Which command is used to save logs in the external file?
What is connection profile? : sas-grid-administration
what is function of retain statment
Assuming {et} is randomly drawn from N(0,1) and e0 = 0, generate 200 observations of xt = et − 0.5e(t−1) and draw a line graph of xt.
what are some differences between proc summary and proc means? : Sas programming
How to import multiple xls files into sas. Out of those files, how to get different values from a single variable and how to find number of rows per value type? We can do this using group by for one xls file with proc sql. Was wondering how I can achieve this for multiple files at the same time. Any ideas?
What is the function of Stop statement in a SAS Program?
What is the role of administrative users? : sas-grid-administration
what are the softwares and applications that are used most frequently used by sas bi applications developers? : Sas-bi
How do you define proc in sas? : sas-grid-administration