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

if we want variables in output window
data _null_;
file print;
put @5 'name' @20 'age' @30 'sex';
run;

if we want in log window
data _null_;
put @5 'name' @20 'age' @30 'sex';
run;

Is This Answer Correct ?    13 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate input and infile.

841


This entry was posted in General. Bookmark the permalink. Post a comment or leave

4357


What is the difference between INPUT and INFILE ?

1000


How can you limit the variables written to output dataset in data step?

1050


Is the physical structure of the data set in the same orientation as the report? Do you need to reshape the data sets? What method should you use to reshape the data–DATA steps,PROC TRANSPOSE,output data set from a procedure?

1981


What is the function of output statement in a SAS Program?

824


what can you learn from the sas log when debugging? : Sas programming

849


why a stop statement is needed for the point= option on a set statement?

828


Explain how you can debug and test your SAS program?

766


What do you code to create a macro? : sas-macro

827


what is information maps?

1837


for whom is sas data integration studio designed? : Sas-di

750


how does sas handle missing values in sort order? : Sas programming

740


Describe the ways in which you can create macro variables?

864


what is sas metadata server? : Sas-di

850