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

Do we follow ADAM in analysis dataset development?How? Usually which version? Why is it necessary?

1918


Explain input and put function?

647


In ARRAY processing, what does the DIM function do?

713


Mention some common errors that are usually committed in sas programming.

594


What is a pdv and what are its functions?

601






How you are maintaining sas programmes in your company...any specific version control software you are using? If so, tell me the name?

1588


Mention sas system options to debug sas macros.

663


What is the role of administrative users? : sas-grid-administration

663


How do you control the number of observations and/or variables read or written?

751


What is slibref?

746


How does proc sql work?

618


how to create the AE dataset by using SDTMIG specifications and SAP plan by using UNIX platform?

2293


Will it bother you if the guy at the next desk times the frequency and duration of your bathroom or coffee breaks on the grounds that ?you are getting paid twice as much as he is??

2098


What are the data types in sas?

613


what is enterprise guide? What is the use of it? : Sas programming

540