home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / bit / listserv / sasl / 3477 < prev    next >
Encoding:
Text File  |  1992-07-29  |  4.4 KB  |  124 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!darwin.sura.net!paladin.american.edu!auvm!SMUVM1.BITNET!UDCW
  3. Organization: Southern Methodist University
  4. Message-ID: <SAS-L%92072917385664@UGA.CC.UGA.EDU>
  5. Newsgroups: bit.listserv.sas-l
  6. Date:         Wed, 29 Jul 1992 16:12:00 CST
  7. Reply-To:     UDCW@SMUVM1.BITNET
  8. Sender:       "SAS(r) Discussion" <SAS-L@UGA.BITNET>
  9. From:         UDCW@SMUVM1.BITNET
  10. Subject:      LABELING IN PROC PRINT
  11. Lines: 111
  12.  
  13. I have a user who is using PROC PRINT in conjunction with a BY variable
  14. and the N option.  He would like to replace the variable name displayed
  15. at the left of the totaled column to the variable label and change the
  16. label N to something else like count.  Included below is a sample SASLOG
  17. and listing.  Specific to the included output, the user would like to
  18. change the variable name, Y, at the end of each by group to 'Capital Y'
  19. and N = 2, N = 3, and Total N = 5, to Count 2, Count 3, and Total Count 5
  20. respectivly.  Is there any way to make these changes in SAS?
  21.  
  22. Thanks in advance,
  23.  
  24. David Welch                              | Look
  25. Senior Systems Analyst                   | I understand too little
  26. Southern Methodist University            |    too late
  27. 6100 Ownby Boulevard                     | I realize there are things
  28. Dallas, TX 75275                         |    you say and do
  29.                                          | You can never take back
  30. (214) 692-2036                           | But what would you be if
  31.                                          |    you didn't even try
  32.                                          | You have to try
  33.                                          | So after alot of thought
  34. UDCW @ SMUVM1                            | I'd like to reconsider
  35. udcw @ vm.cis.smu.edu                    | Please
  36. dwelch @ sun.cis.smu.edu                 | If it's not too late,
  37.                                          | Make it a cheeseburger.
  38.                                          |    - Lyle Lovett
  39.  
  40.  
  41.  
  42. 11                                                          The SAS
  43.  
  44.  NOTE: Copyright(c) 1989 by SAS Institute Inc., Cary, NC USA.
  45.  NOTE: SAS (r) Proprietary Software Release 6.07  TS301
  46.        Licensed to SOUTHERN METHODIST UNIVERSITY, Site 0002784001.
  47.  
  48.  NOTE: Running on IBM Model 3081 Serial Number 023508.
  49.  
  50.  
  51.   WELCOME TO THE SAS SYSTEM, RELEASE 6.07.
  52.  
  53.  
  54.   Your site representative is:  David Welch
  55.                                 Room 115
  56.                                 Bradfield Computing Center
  57.                                 6100 Ownby Blvd
  58.                                 Dallas, TX 75275
  59.                                 (214) 692-2036
  60.  
  61.  
  62.   Changes and enhancements available in SAS Release 6.07 are documen
  63.  
  64.   "Changes and Enhancements to the SAS System, Release 6.07, under C
  65.  
  66.  1          options linesize=72;
  67.  2
  68.  3          data one;
  69.  4           input y x z $;
  70.  5           label x='Capital x'
  71.  6                 y='Capital y'
  72.  7                 z='id var';
  73.  8          cards;
  74.  
  75.  NOTE: The data set WORK.ONE has 5 observations and 3 variables.
  76.  
  77.  14         ;
  78.  15
  79.  16         proc sort data=one;
  80.  17           by y;
  81.  18
  82.  
  83.  NOTE: The data set WORK.ONE has 5 observations and 3 variables.
  84.  
  85.  19         proc print label noobs n;
  86.  20           id z;
  87.  21           sum x;
  88.  22           by y;
  89.  23         title 'SAS Problem';
  90.  NOTE: The PROCEDURE PRINT printed page 1.
  91.  
  92.  NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414
  93. 1                              SAS Problem                              1
  94.                                            16:21 Wednesday, July 29, 1992
  95.  
  96.  ----------------------------- Capital y=1 ------------------------------
  97.  
  98.                               id     Capital
  99.                               var       x
  100.  
  101.                                a        12
  102.                                d        17
  103.                                      -------
  104.                                Y        29
  105.  
  106.                                   N = 2
  107.  
  108.  
  109.  ----------------------------- Capital y=2 ------------------------------
  110.  
  111.                               id     Capital
  112.                               var       x
  113.  
  114.                                b        14
  115.                                c        15
  116.                                e        18
  117.                                      -------
  118.                                Y        47
  119.                                      =======
  120.                                         76
  121.  
  122.                                   N = 3
  123.                             Total N = 5
  124.