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 is maximum storage capability of SAS?
Can you execute a macro within a macro? Describe. : sas-macro
What is factor analysis?
name the scheduler for scheduling job and explain the scheduler? : Sas-di
Explain the use of proc print and proc contents?
In sas admin differentiate between roles and capabilities? : sas-grid-administration
what is sas and what are the functions? : Sas-administrator
What does the trace option do?
what do the sas log messages "numeric values have been converted to character" mean? : Sas programming
How substr function works in sas?
What is the maximum length of the macro variable?
what versions of sas have you used (on which platforms)? : Sas programming
What is the sas data set? : sas-grid-administration
What is the difference between the proc sql and data step?
What is the purpose of trailing @ and @@? How do you use them?