home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / bit / listserv / sasl / 3990 < prev    next >
Encoding:
Text File  |  1992-09-02  |  976 b   |  42 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Subject: (no subject given)
  3. Path: sparky!uunet!paladin.american.edu!auvm!NUSVM.BITNET!CCEWWM
  4. Message-ID: <SAS-L%92090204081286@UGA.CC.UGA.EDU>
  5. Newsgroups: bit.listserv.sas-l
  6. Date:         Wed, 2 Sep 1992 16:07:17 SST
  7. Reply-To:     Wong W M <CCEWWM@NUSVM.BITNET>
  8. Sender:       "SAS(r) Discussion" <SAS-L@UGA.BITNET>
  9. From:         Wong W M <CCEWWM@NUSVM.BITNET>
  10. Lines: 30
  11.  
  12. I always create a format using :
  13.  
  14. proc format;
  15. value recode
  16. 1='1st' 2='second'
  17. ;
  18. run;
  19.  
  20. If I have a long list of values to format or the values are stored in
  21. an external file, can I use data step to create the format so that I
  22. need not type the values in proc format ?  What I have in mind is
  23. something like :
  24.  
  25. data a;
  26. input x $;
  27. n+1;
  28. some SAS statements;
  29. cards;
  30. 1st
  31. second
  32. ;
  33. run;
  34.  
  35. From this I hope to create recode. format.
  36.  
  37. I am using SAS 6.06 on VM/CMS.
  38. All suggestions are welcomed.  Thanks.
  39.  
  40. WONG W M (CCEWWM@NUSVM.BITNET)
  41. National University of Singapore
  42.