Organization: Southern Methodist University
Newsgroups: bit.listserv.sas-l
Date:         Wed, 29 Jul 1992 16:12:00 CST
Reply-To:     UDCW@SMUVM1.BITNET
From:         UDCW@SMUVM1.BITNET
Subject:      LABELING IN PROC PRINT

I have a user who is using PROC PRINT in conjunction with a BY variable
and the N option.  He would like to replace the variable name displayed
at the left of the totaled column to the variable label and change the
label N to something else like count.  Included below is a sample SASLOG
and listing.  Specific to the included output, the user would like to
change the variable name, Y, at the end of each by group to 'Capital Y'
and N = 2, N = 3, and Total N = 5, to Count 2, Count 3, and Total Count 5
respectivly.  Is there any way to make these changes in SAS?

Thanks in advance,

David Welch                              | Look
Senior Systems Analyst                   | I understand too little
Southern Methodist University            |    too late
6100 Ownby Boulevard                     | I realize there are things
Dallas, TX 75275                         |    you say and do
                                         | You can never take back
(214) 692-2036                           | But what would you be if
                                         |    you didn't even try
                                         | You have to try
                                         | So after alot of thought
UDCW @ SMUVM1                            | I'd like to reconsider
udcw @ vm.cis.smu.edu                    | Please
dwelch @ sun.cis.smu.edu                 | If it's not too late,
                                         | Make it a cheeseburger.
                                         |    - Lyle Lovett



11                                                          The SAS

 NOTE: Copyright(c) 1989 by SAS Institute Inc., Cary, NC USA.
 NOTE: SAS (r) Proprietary Software Release 6.07  TS301
       Licensed to SOUTHERN METHODIST UNIVERSITY, Site 0002784001.

 NOTE: Running on IBM Model 3081 Serial Number 023508.


  WELCOME TO THE SAS SYSTEM, RELEASE 6.07.


  Your site representative is:  David Welch
                                Room 115
                                Bradfield Computing Center
                                6100 Ownby Blvd
                                Dallas, TX 75275
                                (214) 692-2036


  Changes and enhancements available in SAS Release 6.07 are documen

  "Changes and Enhancements to the SAS System, Release 6.07, under C

 1          options linesize=72;
 2
 3          data one;
 4           input y x z $;
 5           label x='Capital x'
 6                 y='Capital y'
 7                 z='id var';
 8          cards;

 NOTE: The data set WORK.ONE has 5 observations and 3 variables.

 14         ;
 15
 16         proc sort data=one;
 17           by y;
 18

 NOTE: The data set WORK.ONE has 5 observations and 3 variables.

 19         proc print label noobs n;
 20           id z;
 21           sum x;
 22           by y;
 23         title 'SAS Problem';
 NOTE: The PROCEDURE PRINT printed page 1.

 NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414
1                              SAS Problem                              1
                                           16:21 Wednesday, July 29, 1992

 ----------------------------- Capital y=1 ------------------------------

                              id     Capital
                              var       x

                               a        12
                               d        17
                                     -------
                               Y        29

                                  N = 2


 ----------------------------- Capital y=2 ------------------------------

                              id     Capital
                              var       x

                               b        14
                               c        15
                               e        18
                                     -------
                               Y        47
                                     =======
                                        76

                                  N = 3
                            Total N = 5
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU