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 convert a numeric variable to a character variable?
Tell e how how dealt with..
What are types of transport files?
for report generation which one you used proc report or data_null_?
describe how to adjust the performance of data integrator? : Sas-di
What does the trace option do?
Which command is used to perform sorting in sas program?
Mention what are the data types does SAS contain?
What is auto call macro and how to create a auto call macro? What is the use of it? How to use it in sas with macros? : sas-macro
How do you delete duplicate observations in sas?
What is maximum storage capability of SAS?
What are the default statistics for means procedure?
what is the use of sas management console? : Sas-di
Differences between where and if statement?
Which date function advances a date, time or datetime value by a given interval?