Date: Fri, 1 Jul 2011 11:57:26 -0400
Reply-To: "Kirby, Ted" <ted.kirby@LEWIN.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Kirby, Ted" <ted.kirby@LEWIN.COM>
Subject: Re: how to get an alpha symbol in sas dataset?
In-Reply-To: A<BANLkTikOom-EaFg5nB++R6WZWR=3SHFOkA@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"
I see from the included message below that my alt-0224 somehow got translated from a lower-case acute accented A to a capital A with a tilde over it. It must be a font thing.
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Joe Matise
Sent: Friday, July 01, 2011 11:46 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Re: how to get an alpha symbol in sas dataset?
Alt+3 digit number and alt+4 digit number are two different character sets.
Alt+3 digit number hits Code Page 437, which is one set for 128-255; Alt+4 digit number hits ISO8859-1 on most western systems (though if you're using, say, Hindi Windows, you may have a different encoding).
I would note that the character for 0222 doesn't look like alpha to me...
but that could be a font thing. Anything after 127 is not required to be the same in every character set and font, and should not be relied upon.
Use images, or explicit font/character set combinations if you must rely on it working in other systems.
-Joe
On Fri, Jul 1, 2011 at 10:34 AM, Kirby, Ted <ted.kirby@lewin.com> wrote:
> When I run the original code in SAS 9.1.3, I see that
>
> 222 is alpha (although not a very pretty alpha)
> 223 is beta
> 224 the lower-case letter a with a grave accent (`)
> 225 the lower-case letter a with an acute accent
>
> I get similar results in with Excel's CHAR function.
>
> However using alt+3-digit number, we have the following
>
> 223 is a black rectangle at the top of the character (▀)
> 224 is a prettier alpha (α)
> 225 is beta (ß)
> 226 is gamma (Γ)
>
> However using alt+4-digit number I get results similar to the SAS code
> and Excel.
>
> 0222 is alpha (Þ)
> 0223 is beta (ß)
> 0224 the lower-case letter a with a grave accent (Ã )
> 0225 the lower-case letter a with an acute accent (á)
>
> Does anyone know what is going on here?
>
> -----Original Message-----
> From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
> Arthur Tabachneck
> Sent: Friday, July 01, 2011 9:00 AM
> To: SAS-L@LISTSERV.UGA.EDU
> Subject: Re: how to get an alpha symbol in sas dataset?
>
> Sahdhya,
>
> What is 224? Isn't Beta 225?
>
> Art
> --------
> On Fri, 1 Jul 2011 05:15:18 -0400, Sandhya Rani
> <sandhyayalla@GMAIL.COM>
> wrote:
>
> >223 of ascii gives beeta symbol i need "alpha" symbol like wise sas
> >log of byte of 0 to 255 i did not find "alpha" symbol.
> >
> >data n1;
> > do i = 0 to 255;
> > symbol1 = byte(i);
> > put i symbol1;
> > end;
> >run;
> >
> >in the above code i did not find "alpha symbol";
>
> ************* IMPORTANT - PLEASE READ ********************
>
> This e-mail, including attachments, may include confidential and/or
> proprietary information, and may be used only by the person or entity
> to which it is addressed. If the reader of this e-mail is not the
> intended recipient or his or her authorized agent, the reader is
> hereby notified that any dissemination, distribution or copying of
> this e-mail is prohibited. If you have received this e-mail in error,
> please notify the sender by replying to this message and delete this
> e-mail immediately.
>
************* IMPORTANT - PLEASE READ ********************
This e-mail, including attachments, may include confidential and/or proprietary information,
and may be used only by the person or entity to which it is addressed. If the reader of this
e-mail is not the intended recipient or his or her authorized agent, the reader is hereby
notified that any dissemination, distribution or copying of this e-mail is prohibited. If you
have received this e-mail in error, please notify the sender by replying to this message
and delete this e-mail immediately.
|