Date: Fri, 7 Jul 2006 09:32:22 -0700
Reply-To: Bill McKirgan <bill-mckirgan@UIOWA.EDU>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Bill McKirgan <bill-mckirgan@UIOWA.EDU>
Organization: http://groups.google.com
Subject: Re: Format or National Language Support
In-Reply-To: <1152289848.539033.19160@m79g2000cwm.googlegroups.com>
Content-Type: text/plain; charset="iso-8859-1"
Ooops...my previous example had the commas, but this one does not:
/* Picture format example modified from...
From: Shilling, Brian [PRI] - view profile
Date: Thurs, May 17 2001 1:58 pm
Email: BShil...@PRIUS.JNJ.COM (Shilling, Brian [PRI])
Groups: comp.soft-sys.sas
Subject: matched crossing
*/
proc format;
picture numbers
low - 0 = '000009.99' (prefix='-')
0 - high = '000009.99' (prefix='+') ;
run;
data _null_;
do i = 2324.80, -140.40;
put i numbers.;
end;
run;
Bill McKirgan wrote:
> Here's a picture format example that might be helpful...
>
>
> /* Picture format example modified from...
>
> From: Shilling, Brian [PRI] - view profile
> Date: Thurs, May 17 2001 1:58 pm
> Email: BShil...@PRIUS.JNJ.COM (Shilling, Brian [PRI])
> Groups: comp.soft-sys.sas
> Subject: matched crossing
>
> */
>
> proc format;
> picture numbers
> low - 0 = '000,009.99' (prefix='-')
> 0 - high = '000,009.99' (prefix='+') ;
> run;
>
> data _null_;
> do i = 2324.80, -140.40;
> put i numbers.;
> end;
> run;
> pieterkirsten@gmail.com wrote:
> > I want to print numbers as follows:
> > +2324.80
> > -140.40
> >
> > Thus I want a positive and negative sign and make use of a '.' and not
> > ','
> > Any suggestions of a format or with National Language Support
|