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
What is the function of Stop statement in a SAS Program?
What are the data types does SAS contain?
which date function advances a date, time or datetime value by a given interval? : Sas programming
In sas admin differentiate between roles and capabilities? : sas-grid-administration
how does sas handle missing values in formats? : Sas programming
what is transformation in sas data integration? : Sas-di
what is business intelligence? : Sas-bi
What is Linear Regression?
Have you used macros? For what purpose you have used? : sas-macro
what are sas/access and sas/connect? : Sas programming
What are symget and symput? : sas-macro
How would you invoke a macro? : sas-macro
What is program data vector (pdv)?
What are the limitations for memory allocation for SAS variables
What is PROC in SAS?