hi, let us study how to generate different report formats in sas using different techniques and sas procedures..we will also learn how to customize the layout of the reports as per the requirement using the power of sas.. Discalimer-:This blog is for sharing the knowledge that i have gained .i do not calim the ownership of the original content that is included in the blog.SAS is a trademark of SAS ,usa.
Tuesday, June 2, 2009
How to diplay Page Number IN ODS output
How to display pageno in output header in format ‘page x of y’ in ods —
Well this is pretty easy and can be done using the title statement itself.This always works in RTF but may not work in pdf and html..
Note the use of ods ecsapechar statement .The escapechar(or escapecharacter)is used to convey information to ods as which symbol is to be used as escapecharacter.we can use any special character as escapecharater eg #,~ etc….
ods listing close;
ods escapechar='^';
title1 "Page ^{thispage} of ^{lastpage}";
ods rtf file='c:\users\bobby\desktop\file.rtf';
ods pdf file='c:\users\bobby\desktop\file.pdf';
Proc print data=sasuser.admit n='total obs=';
Run;
ods _all_ close;
ods listing;
Send link to --
SEO Court Directory
myblog
Free Web Directory - Add Your Link
The Little Web Directory
Monster Directory A List Sites
The Little Web Directory
Monster Directory A List Sites