1 The SAS System 22:53 Wednesday, January 17, 1996 NOTE: Copyright (c) 1989-1993 by SAS Institute Inc., Cary, NC, USA. NOTE: SAS (r) Proprietary Software Release 6.10 TS018 Licensed to UNIVERSITY OF MARYLAND BALTIMORE COUNTY, Site 0002318014. This message is contained in the SAS news file, and is presented upon initialization. Edit the files "news" in the "misc/base" directory to display site-specific news and information in the program log. The command line option "-nonews" will prevent this display. NOTE: AUTOEXEC processing beginning; file is /usr/local/sas610/autoexec.sas. NOTE: SAS initialization used: real time 0.27 seconds cpu time 0.19 seconds NOTE: AUTOEXEC processing completed. 1 options linesize=80; 2 title 'Example 7. Test of proc corr'; 3 4 proc format; 5 value $fsex '1'='Male' 6 '2'='Female'; NOTE: Format $FSEX has been output. 7 run; NOTE: PROCEDURE FORMAT used: real time 0.18 seconds cpu time 0.03 seconds 8 9 data sample1; 10 infile 'example2.dat'; 11 input caseid 1-4 mathsat 6-8 score 10-11 sex $ 13 teach 15; 12 format sex $fsex.; 13 label caseid='Subject Number' 14 mathsat='SAT Math Score' 15 score='Final Calculus Score' 16 sex='Sex of Participant' 17 teach='Student Rated Teaching Ability'; 18 NOTE: The infile 'example2.dat' is: File Name=/sd/staffguest/staff/jack/www/ucs/doc/sas/examples/example2.dat, Owner Name=jack,Group Name=systems, Access Permission=rw-r--r--, File Size (bytes)=160 NOTE: 10 records were read from the infile 'example2.dat'. The minimum record length was 15. The maximum record length was 15. 2 The SAS System 22:53 Wednesday, January 17, 1996 NOTE: The data set WORK.SAMPLE1 has 10 observations and 5 variables. NOTE: DATA statement used: real time 0.48 seconds cpu time 0.14 seconds 19 proc corr data=sample1; 20 var mathsat score teach; 21 run; NOTE: The PROCEDURE CORR printed page 1. NOTE: PROCEDURE CORR used: real time 0.31 seconds cpu time 0.05 seconds 22 23 /* Note: Notice that variable sex is defined as a character variable 24 even though it uses numeric values in the data file. This is due to 25 using the proc format statement and changing the value from numeric 26 to character via the format. Because we are doing that we must redefine 27 the type to be character. 28 */ NOTE: The SAS System used: real time 1.31 seconds cpu time 0.47 seconds NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414