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
name the scheduler for scheduling job and explain the scheduler? : Sas-di
Explain substr function?
List down the reasons for choosing sas over other data analytics tools.
what is the difference between nodup and nodupkey options? : Sas programming
What do you understand by the term Normal Distribution?
Mention sas system options to debug sas macros.
what are informats in sas? : Sas-administrator
What is a pdv and what are its functions?
Explain why double trailing @@ is used in input statement?
I have a dataset concat having a variable a b & c. How to rename a b to e & f?
How to sort in descending order?
what are the scrubbing procedures in sas? : Sas programming
how do you debug and test your sas programs? : Sas programming
What is the difference between input and infile statement?
What are the functions used for character handling?