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 are the best practices to process the large data sets in sas programming? : Sas-administrator
describe about physical data integration? : Sas-di
what is the difference between nodup and nodupkey options? : Sas programming
Explain the purpose of substr functions in sas programming.
What function CATX syntax does?
Explain proc sort?
Which statement does not perform automatic conversions in comparisons?
How would you invoke a macro? : sas-macro
what is the difference between infile and input? : Sas-administrator
how can you create zero observation dataset? : Sas programming
What is the difference between nodupkey and nodup options?
explain the concepts and capabilities of business object? : Sas-bi
what can you learn from the sas log when debugging? : Sas programming
How would you define the end of a macro? : sas-macro
How do dates work in SAS data?