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 has been your most common programming mistake? : Sas programming
Explain the main difference between the sas procedures and functions? : Sas-administrator
how sas deals with business intelligence? : Sas-bi
How you can read the variables that you need?
I have 3 years of work experience at a startup and recently got certified in Data Science with SAS. I need to know how to get into the analytics industry
Mention the validation tools used in SAS?
how does sas handle missing values in functions? : Sas programming
What is factor analysis?
What is proc sort?
Explain the difference between informat and format with an example.
How do you connect the desktop application to metadata server? : sas-grid-administration
What sas features do you use to check errors and data validation?
what are some differences between proc summary and proc means? : Sas programming
What do the SAS log messages "numeric values have been converted to character" mean?
For what purpose would you use the RETAIN statement?