Date: Thu, 21 Mar 2002 16:58:32 +0100
Reply-To: Frank Poppe <Frank.Poppe@PWCONS.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Frank Poppe <Frank.Poppe@PWCONS.COM>
Subject: Re: Picture format (surprise in ods)
"David L. Cassell" <Cassell.David@EPAMAIL.EPA.GOV> wrote in message
news:OF4E4CCBFD.1920F29B-ON88256B82.00653792@rtp.epa.gov...
David,
You state this is a specific RTF directive. That is not true. This uses an
SAS - ODS escape sequence, so any ODS destination will do this.
So ODS will neatly produce an exponent, for all destinations (I haven't
tested it for PS, but it works for PDF).
Only, as noted already by others, the formatting of SAS will have put the
last digit of the value to be formatted in the place of the '2'...
Frank Poppe
> Andre Wielki <wielki@INED.FR> replied [in part]:
> > I was surprised by the result of this program: it is like a fantasy
> exponent!
> > Anybody has an explanation?
> >
> > proc format;
> > picture dosefmt low-high='000 mg/m \{super 2}';
> > run;
> > . . .
> > ods escapechar '\';
> > ods rtf file='d:\superscript.rtf';
> > proc print data=a;
> > format dose dosefmt.;
> > run;
>
> This works in RTF [but not in PostScript] as your code shows,
> because it is invoking a specific RTF directive. Unfortunately,
> there isn't a simple equivalent in PostScript [AFAIK]. But that's
> why it's a Rich Text Format. :-)
>
> David
> --
> David Cassell, CSC
> Cassell.David@epa.gov
> Senior computing specialist
> mathematical statistician
|