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


Please Help Members By Posting Answers For Below Questions

What is the difference between %put and symbolgen? : sas-macro

667


Name validation tools used in SAS

689


How to include or exclude specific variables in a data set?

642


what is data access? : Sas-di

603


what is ae onset date n what is RDS

1931






how does sas handle missing values in procs? : Sas programming

634


Explain substr function?

574


What are types of transport files?

6843


How would you define the end of a macro?

698


If a variable contains only numbers, can it be a character data type?

610


Why double trailing @@ is used in input statement?

699


Approximately what date is represented by the SAS date value of 730?

744


Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?

1467


Differentiate input and infile.

592


What is the difference between using drop = data set option in data statement and set statement?

636