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

Explain input and put function?

643


What are the functions used for character handling?

637


How is character variable converted into numeric variable and vice versa?

588


Do you need to rearrange the order of the data for the report?

1829


what is the difference between infile and input? : Sas-administrator

603






Explain why double trailing @@ is used in input statement?

565


What is proc sort?

715


what type of graphs we will create(for 2+years candidates)?

1898


Are you sensitive to code walk-throughs peer review or QC review?

2595


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

576


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

642


Explain translate function?

628


what is sas enterprise intelligence architecture? : Sas-bi

543


Tell me more about the parameters in macro? : sas-macro

584


What is by-group processing?

572