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
AE datasets names? how many types?
where are dashboard components are created and maintained? : Sas-bi
What are the applications primarily used by business analyst? : Sas-bi
What is the maximum length of the macro variable? : sas-macro
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?
explain the use of % includes a statement in sas? : Sas-administrator
List out some key concept of SAS
What are the five ways to do a table lookup in sas? : sas-grid-administration
What are the data types in sas?
explain the concepts and capabilities of business object? : Sas-bi
Hi, Does anybody has lastest SAS certification(base, adv., clinical)dumps,if anybody has please email me at mailtorajani76@gmail.com. Thanks
what is the one statement to set the criteria of data that can be coded in any step? : Sas programming
explain the proc in sas? : Sas-administrator
What are the statements in proc sql?
Name validation tools used in SAS