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
Explain input and put function?
What are the functions used for character handling?
How is character variable converted into numeric variable and vice versa?
Do you need to rearrange the order of the data for the report?
what is the difference between infile and input? : Sas-administrator
Explain why double trailing @@ is used in input statement?
What is proc sort?
what type of graphs we will create(for 2+years candidates)?
Are you sensitive to code walk-throughs peer review or QC review?
What is auto call macro and how to create a auto call macro? What is the use of it? How to use it in sas with macros? : sas-macro
What is the function of Stop statement in a SAS Program?
Explain translate function?
what is sas enterprise intelligence architecture? : Sas-bi
Tell me more about the parameters in macro? : sas-macro
What is by-group processing?