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 / 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 |
Post New Answer View All Answers
How we can create SAS USER DEFINED CODE?
How to test the debugging in sas?
What are the statements that are executed only?
What is a macro routine?
What are the special input delimiters used in SAS?
how will you locate the sas platform applications? : Sas-bi
What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?
Explain what is the use of proc gplot?
What is your favorite all time computer book? Why?
which features do you use to check the data validations and errors? : Sas-administrator
What are the limitations for memory allocation for SAS variables
Are you involved in writing the inferential analysis plan? Tables specifications?
What are the difference between sas functions and procedures?
data data1; input dt account; format dt date9.; cards; 1745 1230 1756 1120 1788 1130 1767 1240 ; data data2; input startdt enddt total; format startdt date9. enddt date9.; cards; 1657 1834 12300 1557 1758 16800 1789 1789 12300 1788 1345 12383 1899 1899 13250 ; proc sql; create table data3 as select * from data1 as x left join data2 as y on x.dt>=y.startdt and x.dt<=y.enddt; quit; Here, we are getting cartision product. But,I want left join report consisting of this program. It should not get duplicate values. you can modify the program also.
Mention some common errors that are usually committed in sas programming.