home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / bit / listserv / sasl / 4998 < prev    next >
Encoding:
Text File  |  1992-11-10  |  1.5 KB  |  47 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!stanford.edu!bcm!convex!darwin.sura.net!paladin.american.edu!auvm!PHPDLS1.EM.CDC.GOV!RJF2
  3. X-Delivery-Notice:  SMTP MAIL FROM does not correspond to sender.
  4. Return-Path: rjf2@PHPDLS1.EM.CDC.GOV
  5. Encoding: 36 TEXT
  6. X-Mailer: Microsoft Mail V3.0 (beta-2)
  7. Message-ID: <2AFF629B@router.em.cdc.gov>
  8. Newsgroups: bit.listserv.sas-l
  9. Date:         Tue, 10 Nov 1992 11:22:00 EST
  10. Reply-To:     rjf2@PHPDLS1.EM.CDC.GOV
  11. Sender:       "SAS(r) Discussion" <SAS-L@UGA.BITNET>
  12. From:         rjf2@PHPDLS1.EM.CDC.GOV
  13. Subject:      proc FREQ usage
  14. Lines: 31
  15.  
  16. content      : Information
  17. summary      : proc FREQ usage with char-vars greater than 16 chars
  18. rlse/platform: V6.07 / MVS
  19. Ron Fehd     :                SMTP:BitNet:    <rjf2@phpdls1.em.cdc.gov>
  20.               Centers for Disease Control
  21.               1600 Clifton Rd  MS:G25         FAX  : 404/639-1778
  22.               Atlanta, GA 30333  USA          phone: 404/639-1707
  23.  
  24. Here's some more interesting stuff on proc freq:
  25.  
  26. when your char-var is greater than 16 chars and you want to see the whole
  27. var, you can create an SSD with proc FREQ and then print it. This does *not*
  28. get around the issue of uniqueness in the first 16 characters that the List
  29. has been talking about recently.
  30.  
  31. DATA LONGNAME;
  32.   length Char_Var $ 17;
  33.   <input, set, whatever. . .>;
  34.  
  35. proc FREQ;
  36.   tables Char_Var / /*missing*/ out = FREQ_SSD noprint;
  37.  
  38. DATA  FREQ_SSD;
  39.   set FREQ_SSD;
  40.   retain CumCount CumPcent 0;
  41.   CumCount + Count;
  42.   CumPcent + Percent;
  43.  
  44. proc PRINT;
  45.  
  46. happy crunching!*!*!
  47.