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 / yuyin

Use PROC SQL; Select * into: macro_variables separated
by ' ' from table;

Is This Answer Correct ?    4 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is treatment emergent events and treatment emregent adverse event

1947


What are the ways to do a “table lookup” in sas?

595


How to specify variables to be processed by the freq procedure?

619


Have you ever used the SAS Debugger?

1211


What are all the problems you faced while validating tables and reports?

3016






What is the maximum length of the macro variable?

680


What is a macro routine?

2106


Explain the purpose of retain statement.

607


How to create an external dataset with sas code?

590


What is the difference between class statement and by statement in proc means?

663


how does sas handle missing values in assignment statements? : Sas programming

571


What are the differences between sum function and using “+” operator?

581


What are the data types that sas contain?

659


how are numeric and character missing values represented internally? : Sas programming

622


What are the advantages of using sas?

611