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

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!stanford.edu!bcm!convex!darwin.sura.net!paladin.american.edu!auvm!GTE.COM!GLG2
  3. X-Mailer: ELM [version 2.3 PL10]
  4. Message-ID: <9211101628.AA25293@bunny.gte.com>
  5. Newsgroups: bit.listserv.sas-l
  6. Date:         Tue, 10 Nov 1992 11:28:48 EST
  7. Reply-To:     "(Gail Gill)" <glg2@GTE.COM>
  8. Sender:       "SAS(r) Discussion" <SAS-L@UGA.BITNET>
  9. From:         "(Gail Gill)" <glg2@GTE.COM>
  10. Subject:      Re: Proc Freq, using SQL
  11. Comments: To: sas-l@uga.cc.uga.edu
  12. In-Reply-To:  <199211101511.AA01909@harvey.gte.com>; from
  13.               "HARVEY::"SAS-L@uga.cc.uga.edu" at Nov 10, 92 10:11 am
  14. Lines: 15
  15.  
  16. In regards to 16 character truncation with PROC FREQ, several months ago there
  17. was much discussion about that very topic. A wonderful solution was provided
  18. by those users of SQL. I have used it successfully many times. An example
  19. follows:
  20.  
  21. proc sql;
  22.  create view **give it a name** as
  23.   select **your variable**, count (*) as count
  24.    from **your SAS dataset name***
  25.     group by **your variable listed above***;
  26.  
  27. Should you desire to see a print out of your results, you need only
  28. do a proc print with data=   and put your view name there.
  29.  
  30. Hope this helps.
  31.