home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / bit / listserv / sasl / 5035 < prev    next >
Encoding:
Internet Message Format  |  1992-11-12  |  1.6 KB

  1. Path: sparky!uunet!utcsri!torn!nott!dgbt!netfs!ub!zaphod.mps.ohio-state.edu!darwin.sura.net!paladin.american.edu!auvm!PHPDLS1.EM.CDC.GOV!RJF2
  2. From: rjf2@PHPDLS1.EM.CDC.GOV
  3. Newsgroups: bit.listserv.sas-l
  4. Subject: proc FORMAT: homework
  5. Message-ID: <2B02392C@router.em.cdc.gov>
  6. Date: 12 Nov 92 20:02:00 GMT
  7. Sender: "SAS(r) Discussion" <SAS-L@UGA.BITNET>
  8. Reply-To: rjf2@PHPDLS1.EM.CDC.GOV
  9. Lines: 40
  10. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  11. X-Delivery-Notice:  SMTP MAIL FROM does not correspond to sender.
  12. Return-Path: rjf2@PHPDLS1.EM.CDC.GOV
  13. Encoding: 70 TEXT
  14. X-Mailer: Microsoft Mail V3.0 (beta-2)
  15. Comments: To: SAS-L@UGA.BITNET, vpm1@OPSIRM1.EM.CDC.GOV
  16.  
  17. content      : Question, part 2
  18. summary      : proc FORMAT for (99 lt number lt 100), proc FREQ SSD
  19. rlse/platform: V6.07 / MVS
  20. Ron Fehd     :                SMTP:BitNet:    <rjf2@phpdls1.em.cdc.gov>
  21.               Centers for Disease Control
  22.               1600 Clifton Rd  MS:G25         FAX  : 404/639-1778
  23.               Atlanta, GA 30333  USA          phone: 404/639-1707
  24.  
  25. all right, all right, here's the (basic) proc FREQ code that I used before I
  26. got around to putting the format on Percent.
  27.  
  28. proc FORMAT; value PCNT 99 <-< 100 = '>99';
  29.  
  30. DATA TEST;
  31.   input @1 Mnfr $char1.
  32.         @3 Data $char1.;
  33. cards;
  34. 1 .
  35. 2 x
  36. 2 x
  37. 2 x
  38. 3 x
  39. ;
  40.  
  41. proc FREQ;
  42.   tables Data / out = FREQ noprint;
  43.   by Mnfr;
  44.  
  45. proc PRINT;
  46.   format Percent PCNT.;
  47.  
  48. oooooooooooooooooooooooooohhhhh, strange!
  49.  
  50. The output from FREQ lists 100% for each Mnfr.
  51.  
  52. But when you print the SSD the Percent for Mnfr=2 formats to '<99'.
  53.  
  54. OK! the Question is:
  55.  
  56. how do I polish the FREQ SSD Percent?
  57.