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
What is a method for assigning first.VAR and last.VAR to the BY group variable on unsorted data?
Which date function advances a date, time or datetime value by a given interval?
What are the differences between sum function and using “+” operator?
How do dates work in sas?
What do you know about sas data set?
What is maximum number of rows and cols can be handled in SAS?
This entry was posted in General. Bookmark the permalink. Post a comment or leave
Mention common programming errors committed in sas ?
how can you create zero observation dataset? : Sas programming
Which statement does not perform automatic conversions in comparisons?
How to create list output for cross-tabulations in proc freq?
what is hash files in sas and why we are using this one in sas?
What are the functions used for character handling?
what are the benefits of data integration? : Sas-di
What do the sas log messages “numeric values have been converted to character” mean? What are the implications?