home *** CD-ROM | disk | FTP | other *** search
- 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
- From: rjf2@PHPDLS1.EM.CDC.GOV
- Newsgroups: bit.listserv.sas-l
- Subject: proc FORMAT: homework
- Message-ID: <2B02392C@router.em.cdc.gov>
- Date: 12 Nov 92 20:02:00 GMT
- Sender: "SAS(r) Discussion" <SAS-L@UGA.BITNET>
- Reply-To: rjf2@PHPDLS1.EM.CDC.GOV
- Lines: 40
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- X-Delivery-Notice: SMTP MAIL FROM does not correspond to sender.
- Return-Path: rjf2@PHPDLS1.EM.CDC.GOV
- Encoding: 70 TEXT
- X-Mailer: Microsoft Mail V3.0 (beta-2)
- Comments: To: SAS-L@UGA.BITNET, vpm1@OPSIRM1.EM.CDC.GOV
-
- content : Question, part 2
- summary : proc FORMAT for (99 lt number lt 100), proc FREQ SSD
- rlse/platform: V6.07 / MVS
- Ron Fehd : SMTP:BitNet: <rjf2@phpdls1.em.cdc.gov>
- Centers for Disease Control
- 1600 Clifton Rd MS:G25 FAX : 404/639-1778
- Atlanta, GA 30333 USA phone: 404/639-1707
-
- all right, all right, here's the (basic) proc FREQ code that I used before I
- got around to putting the format on Percent.
-
- proc FORMAT; value PCNT 99 <-< 100 = '>99';
-
- DATA TEST;
- input @1 Mnfr $char1.
- @3 Data $char1.;
- cards;
- 1 .
- 2 x
- 2 x
- 2 x
- 3 x
- ;
-
- proc FREQ;
- tables Data / out = FREQ noprint;
- by Mnfr;
-
- proc PRINT;
- format Percent PCNT.;
-
- oooooooooooooooooooooooooohhhhh, strange!
-
- The output from FREQ lists 100% for each Mnfr.
-
- But when you print the SSD the Percent for Mnfr=2 formats to '<99'.
-
- OK! the Question is:
-
- how do I polish the FREQ SSD Percent?
-