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 difference between %put and symbolgen? : sas-macro
Name validation tools used in SAS
How to include or exclude specific variables in a data set?
what is data access? : Sas-di
what is ae onset date n what is RDS
how does sas handle missing values in procs? : Sas programming
Explain substr function?
What are types of transport files?
How would you define the end of a macro?
If a variable contains only numbers, can it be a character data type?
Why double trailing @@ is used in input statement?
Approximately what date is represented by the SAS date value of 730?
Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?
Differentiate input and infile.
What is the difference between using drop = data set option in data statement and set statement?