Date: Thu, 11 Mar 2010 09:55:46 -0800
Reply-To: "Richard A. DeVenezia" <rdevenezia@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Richard A. DeVenezia" <rdevenezia@GMAIL.COM>
Organization: http://groups.google.com
Subject: Re: proc format.
Content-Type: text/plain; charset=ISO-8859-1
On Mar 11, 5:20 am, Ching <kcwo...@gmail.com> wrote:
> Hi everyone.
>
> May I please ask why only raceF but not ethnicityF can be loaded to my
> 'e' dataset? Somehow only format name less than 8 letters can be
> loaded. I tried shortening ethnicityF to ethniciF then it would be
> fine. What should I do so I can use ethnicityF(also longer format
> name) rather than raceF?
>
> proc format;
> value ethnicityF 1='Chinese' 2='European' 3='Indian';
> value raceF 1='Chinese' 2='European' 3='Indian';
> run;
> data e;
> format eth ethnicityF.;
> input id eth @@;
> datalines;
> 1 1 2 2 3 3
> ;
> run;
>
> Many thanks in advance.
> Have a great weekend.
What version of SAS are you using ?
Earlier versions limited the length of format names to eight
characters.
--
Richard A. DeVenezia
http://www.devenezia.com
|