home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Subject: (no subject given)
- Path: sparky!uunet!paladin.american.edu!auvm!NUSVM.BITNET!CCEWWM
- Message-ID: <SAS-L%92090204081286@UGA.CC.UGA.EDU>
- Newsgroups: bit.listserv.sas-l
- Date: Wed, 2 Sep 1992 16:07:17 SST
- Reply-To: Wong W M <CCEWWM@NUSVM.BITNET>
- Sender: "SAS(r) Discussion" <SAS-L@UGA.BITNET>
- From: Wong W M <CCEWWM@NUSVM.BITNET>
- Lines: 30
-
- I always create a format using :
-
- proc format;
- value recode
- 1='1st' 2='second'
- ;
- run;
-
- If I have a long list of values to format or the values are stored in
- an external file, can I use data step to create the format so that I
- need not type the values in proc format ? What I have in mind is
- something like :
-
- data a;
- input x $;
- n+1;
- some SAS statements;
- cards;
- 1st
- second
- ;
- run;
-
- From this I hope to create recode. format.
-
- I am using SAS 6.06 on VM/CMS.
- All suggestions are welcomed. Thanks.
-
- WONG W M (CCEWWM@NUSVM.BITNET)
- National University of Singapore
-