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?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / sasuser
Hi Guys,
Following is the solution:
data _null_;
set sashelp.vcolumn ;
where libname='SASHELP' and memname='CLASS';
file print;
putlog Name @@;
put Name @@;
run;
| Is This Answer Correct ? | 5 Yes | 2 No |
Answer / sas user
* To print in log window
data _null_;
put x1= \
x2= \
x10= \;
run;
* To print on output window:
data _null_;
file print;
put x1= \
x2= \
x10= \;
run;
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / rohit acharya
The variables of the empty dataset can be easily viewed in the output window with the help of proc contents
| Is This Answer Correct ? | 0 Yes | 0 No |
What are symbol tables?Differemce between Local N Global Symbol tables.....
I need level 2 to 5 sas using companies in india
what is SAS/Access and SAS/Connect?what are the uses?
Describe 5 ways to do a “table lookup” in SAS?
differnce between 8.2 and 9.1.3
In which case u go for libname and in which case u go for proc sql pass thru facilit diff?
which features do you use to check the data validations and errors? : Sas-administrator
How to save the log information in a file for future use
what techniques and/or procs do you use for tables? : Sas programming
what is sas application server, database server, sas olap server and sas metadata server? : Sas-di
Does anybody have SAS Training manual or documentation or can you refer me any book to have better understanding on SAS. I am fresher to SAS tool. (Ready to pay)
Explain what Proc glm does?