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

what is scheduling and how will u implement it. In scheduling 5 jobs r running if there is an error occured at 3rd job and how will u check and waht necessary steps will u take not to repeat the same mistake

2117


what is the basic structure sas administrator? : Sas-administrator

792


What are SAS/ACCESS and SAS/CONNECT?

871


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

879


What is the difference between where and if statement?

835


What are the functions used for character handling?

891


What are the differences between proc means and proc summary?

812


What is the work of tranwrd function?

959


what do the pad and dim functions do? : Sas programming

785


what is change analysis in sas di ? : Sas-di

801


explain about sas business intelligence? : Sas-bi

825


What makes sas stand out to be the best over other data analytics tools?

807


Explain the main difference between the sas procedures and functions? : Sas-administrator

784


what are the considerations when picking a SAS/STAT procedure?

3135


What do you know about sas data set?

812