Date: Wed, 21 Jul 2010 09:35:39 -0400
Reply-To: Jonas Bilenas <jonas.bilenas@CHASE.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Jonas Bilenas <jonas.bilenas@CHASE.COM>
Subject: Re: Aaargh fomat/informat :-(
It is easier if you show your code, but this looks simple enough. Try
playing with this:
value $sex 'M', 'm' = 'Male'
'F', 'f' = 'Female'
other = [$1.]
proc freq data=YOUR_DATA;
format sex $sex.;
For more help and a shameless plug, check out my SAS Press book; The Power
of Proc Format,
On Wed, 21 Jul 2010 06:54:06 +0000, Laughing Beggar
>I have a character variable called sex that is variously coded 'M' or 'm'
or 'F' or 'f' and I want it to appear in a Proc Freq table as 'Male'
>I thought I'd try doing it with a format or an informat but have fully
>Can it be done this way?
>"The beggar laughs in the face of the thief"
>Browse profiles for FREE! Meet local singles online.