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 / raghu kishor. k
proc contents data= dsname out=o/pdsname;
run;
proc sql; select name into: macrovariablename separated
by ' 'from o/pdsname;
quit;
| Is This Answer Correct ? | 12 Yes | 1 No |
Post New Answer View All Answers
If a variable contains only numbers, can it be a character data type?
What are the automatic variables for macro? : sas-macro
What do the mod and int function do? : Sas programming
Mention the validation tools used in SAS?
State the difference between INFORMAT and FORMAT ?
what is sas application server, database server, sas olap server and sas metadata server? : Sas-di
How to limit decimal places for the variable using proc means?
Tell me about % include and % eval? : sas-macro
what are sas bi dashboard components? : Sas-bi
AE datasets names? how many types?
what do the sas log messages "numeric values have been converted to character" mean? What are the implications? : Sas programming
How do you debug and test your SAS programs?
how are numeric and character missing values represented internally? : Sas programming
How to test the debugging in sas?
Enlist the syntax rules followed in sas statements.