i have a null dataset with 10 variables; i want to print only
name of the varibales in log window and also output window.how
can we do this one?

Answer Posted / sas user

* To print in log window
data _null_;
put x1= \
x2= \
x10= \;
run;

* To print on output window:

data _null_;
file print;
put x1= \
x2= \
x10= \;
run;

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the use of proc gplot? : sas-grid-administration

783


what is the function of catx syntax? : Sas-administrator

886


How to limit decimal places for variable using proc means?

823


What’s the difference between var b1 – b3 and var b1 — b3?

1079


what is slowly changing dimension? : Sas-di

873


what is the difference between unique key and primary key? : Sas-di

853


what is transformation in sas data integration? : Sas-di

789


what is the primary data source for the wrs? : Sas-bi

902


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

776


how can you create zero observation dataset? : Sas programming

916


what is the use of sas management console? : Sas-di

835


What is the maximum length of the macro variable? : sas-macro

867


what is treatment emergent events and treatment emregent adverse event

2172


what is sas business intelligence? : Sas-bi

850


explain the key concept of sas? : Sas-administrator

774