| Date: | Fri, 5 Jan 2007 16:50:11 -0500 |
| Reply-To: | Jake Bee <johbee@GMAIL.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Jake Bee <johbee@GMAIL.COM> |
| Subject: | Re: Help needed with a weird problem with RTF with PROC REPORT |
|
| In-Reply-To: | <BAY123-F11DA57A1538602BE6BE914DEBF0@phx.gbl> |
| Content-Type: | text/plain; charset=ISO-8859-1; format=flowed |
No sure if the following works with RTF as it does with HMTL, but you may
find the same per Toby's link.
title2 height=1.2 j=l "My title2"
j=r " {\b\i Page} {\field {\*\fldinst {\b\i Page }}}\~{\b\i
of}\~{\field{\*\fldinst {\b\i NUMPAGES }}}";
run;
ods listing;
ods html close;
run;
On 1/5/07, toby dunn <tobydunn@hotmail.com> wrote:
>
> Go here it explains how to get sas to do this in RTF:
>
> http://support.sas.com/faq/040/FAQ04010.html
>
> Toby Dunn
>
> To sensible men, every day is a day of reckoning. ~John W. Gardner
>
> The important thing is this: To be able at any moment to sacrifice that
> which we are for what we could become. ~Charles DuBois
>
> Don't get your knickers in a knot. Nothing is solved and it just makes you
> walk funny. ~Kathryn Carpenter
>
>
>
>
>
>
> From: monal kohli <k_monal_99@YAHOO.COM>
> Reply-To: monal kohli <k_monal_99@YAHOO.COM>
> To: SAS-L@LISTSERV.UGA.EDU
> Subject: Help needed with a weird problem with RTF with PROC REPORT
> Date: Fri, 5 Jan 2007 13:01:20 -0800
>
> Hi All,
> I am sure someone can help me out here.SAS help was not of much help so I
> thought I might get some help here.
>
> The task is to put different table outputs from proc reports into one rtf
> file.This is how I am doing it:
>
> ods file = "mona.rtf" ;
>
> %macro run_all(src);
>
> %include "C:\Mona\&src";
>
> %mend;
> %run_all(prog1.sas);
> %run_all(prog2.sas);
> %run_all(prog3.sas);
>
> ods _ALL_ close;
> run;
> ods rtf close;
> run;quit;
>
>
> When I run this the page numbers are all wrong.Logically what SAS does is
> right but is there a way to get the right page numbers based on which
> table
> the output is coming from.
>
> If prog1.sas table has 2 pages the first page should say (page 1 of 2) and
> then
> (page 2 of 2).But right now it gets the total count from the last page
> which
> is contributed from the prog3.sas table output.
>
> I would be really thankful if anyone can provide some insight on this
> issue.
>
> Mona
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> _________________________________________________________________
> Your Hotmail address already works to sign into Windows Live Messenger!
> Get
> it now
>
> http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://get.live.com/messenger/overview
>
|