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 operational data and operational system? : Sas-di

883


Of all your work, where have you been the most successful?

4447


How to limit decimal places for variable using proc means?

823


In SAS explain which statement does not perform automatic conversions in comparisons?

1088


What are the default statistics for means procedure?

912


What is maximum number of rows and cols can be handled in SAS?

1113


What is the order of application for output data set options, input data set options and SAS statements?

1323


how would you create multiple observations from a single observation? : Sas programming

794


What is PDV?

932


What are the difference between the sas data step and sas procs?

859


Are you involved in writing the inferential analysis plan? Tables specifications?

3725


What is the role of sas grid administrator? : sas-grid-administration

1080


Describe the ways in which you can create a macro variable?

850


What are the data types in sas?

837


Explain bmdp procedure?

819