1 The SAS System 13:02 Saturday, December 15, 2001 NOTE: Copyright (c) 1999-2001 by SAS Institute Inc., Cary, NC, USA. NOTE: SAS (r) Proprietary Software Release 8.2 (TS2M0) Licensed to UNIVERSITY OF MISSOURI AT COLUMBIA-CAMPUSWIDE-T/R, Site 0001242001. NOTE: This session is executing on the AIX 4.3 platform. 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: SAS initialization used: real time 0.11 seconds cpu time 0.04 seconds NOTE: AUTOEXEC processing beginning; file is /home/john/autoexec.sas. v8= 1 ***** ****** MSCDC autoexec rev for V8 01-21-2000 - begin execution ******* Standard filerefs and librefs assigned ***** NOTE: Libref PL942000 was successfully assigned as follows: Engine: V8 Physical Name: /pub/data/pl942000 NOTE: Libref PL9490TX was successfully assigned as follows: Engine: V8 Physical Name: /pub/data/pl9490/pl9490tx NOTE: Library POPESTS does not exist. NOTE: Libref STF903X was successfully assigned as follows: Engine: V8 Physical Name: /pub/data/stf903x ****Finished with generic autoexec **** *** ****Excuting my private autoexec.sas file, rev. 12May2001 WARNING: Libname LIBRARY is not assigned. NOTE: Libname LIBRARY refers to the same physical library as SASCTLGS. NOTE: Libref LIBRARY was successfully assigned as follows: Engine: V8 Physical Name: /pub/sasctlgs WARNING: No logical assign for filename RLINK. ***** dmsflag= NODMS dmchk execution begins *** **Begin execution on Saturday 15DEC01 at 13:02 PID=47192 NOTE: Libref SF1 was successfully assigned as follows: Engine: V8 Physical Name: /pub/data/sf12000 NOTE: Libref SF1X was successfully assigned as follows: Engine: V8 Physical Name: /pub/data/sf12000x NOTE: Libref INDCTRS was successfully assigned as follows: 2 The SAS System 13:02 Saturday, December 15, 2001 Engine: V8 Physical Name: /pub/data/indctrs NOTE: AUTOEXEC processing completed. 1 x cd /pub/data/stf903/Tools 1 ! ; %let pgm=compress_sets; filename pgm "&pgm..sas"; 2 3 *---We downloaded dozens of these very large stf903 data sets from the oseda box. We now want to get 4 most of them in compressed format. While we are making a new copy we will also create a sumlev 5 variable (copy of slvl) and will create specified indices and specify sortedby specs. 6 John Blodgett, Dec. 2001. 7 ---*; 8 9 libname stf903 '/pub/data/stf903'; NOTE: Libref STF903 was successfully assigned as follows: Engine: V8 Physical Name: /pub/data/stf903 10 11 *---run a sample before macro-fying--; 12 %let set=ksstcnty; %let indices=county; %let sortedby=county; 13 14 %macro doit(set,indices,sortedby,doover=0); 15 %*--for doover to work you must first delete the &set and &set.c datasets using unix rm--; 16 %if &doover %then %do; 17 proc datasets nolist library=stf903; 18 change &set.B=&set; 19 quit; 20 %end; 21 22 23 data stf903.&set.C(compress=yes label='Kansas state and county summaries' 24 %if %quote(&sortedby) ne %str() %then %str(sortedby=&sortedby); 25 ); 26 attrib SumLev label='Geo Summary Lvl' length=$3; 27 set stf903.&set; 28 SumLev=slvl; 29 run; 30 31 proc datasets library=stf903 nolist; 32 modify &set.C; 33 %if %quote(&indices) ne %str() %then 34 %str(index create &indices;); 35 change &set=&set.B; 36 change &set.C=&set; 37 quit; 38 %mend doit; 39 40 *doit(ari,sumlev,doover=1); 41 42 %doit(arzips,doover=1) NOTE: Changing the name STF903.ARZIPSB to STF903.ARZIPS (memtype=DATA). NOTE: PROCEDURE DATASETS used: real time 0.02 seconds cpu time 0.02 seconds 3 The SAS System 13:02 Saturday, December 15, 2001 NOTE: There were 578 observations read from the data set STF903.ARZIPS. NOTE: The data set STF903.ARZIPSC has 578 observations and 3351 variables. NOTE: Compressing data set STF903.ARZIPSC decreased size by 65.33 percent. Compressed is 69 pages; un-compressed would require 199 pages. NOTE: DATA statement used: real time 1.92 seconds cpu time 1.25 seconds NOTE: Changing the name STF903.ARZIPS to STF903.ARZIPSB (memtype=DATA). NOTE: Changing the name STF903.ARZIPSC to STF903.ARZIPS (memtype=DATA). NOTE: PROCEDURE DATASETS used: real time 0.07 seconds cpu time 0.04 seconds 43 44 %doit(azzips) NOTE: There were 270 observations read from the data set STF903.AZZIPS. NOTE: The data set STF903.AZZIPSC has 270 observations and 3351 variables. NOTE: Compressing data set STF903.AZZIPSC decreased size by 51.04 percent. Compressed is 47 pages; un-compressed would require 96 pages. NOTE: DATA statement used: real time 1.30 seconds cpu time 0.83 seconds NOTE: Changing the name STF903.AZZIPS to STF903.AZZIPSB (memtype=DATA). NOTE: Changing the name STF903.AZZIPSC to STF903.AZZIPS (memtype=DATA). NOTE: PROCEDURE DATASETS used: real time 0.06 seconds cpu time 0.04 seconds 45 %doit(iai,sumlev) NOTE: There were 7611 observations read from the data set STF903.IAI. NOTE: The data set STF903.IAIC has 7611 observations and 3352 variables. NOTE: Compressing data set STF903.IAIC decreased size by 72.28 percent. Compressed is 705 pages; un-compressed would require 2543 pages. NOTE: DATA statement used: real time 17.55 seconds cpu time 14.16 seconds NOTE: Simple index SumLev has been defined. NOTE: Changing the name STF903.IAI to STF903.IAIB (memtype=DATA). NOTE: Changing the name STF903.IAIC to STF903.IAI (memtype=DATA). NOTE: PROCEDURE DATASETS used: 4 The SAS System 13:02 Saturday, December 15, 2001 real time 2.20 seconds cpu time 1.97 seconds 46 /*<=========================Comment out===================================== 47 %doit(ilbg7040,county,county tract bg) 48 %doit(ilbg9999,county,county tract bg) 49 %doit(ilhnotsl,county) 50 %doit(ilhstl,county) 51 %doit(ilmcds,county) 52 %doit(ilother,sumlev) 53 %doit(iltrbnas,county,county tract) 54 %doit(ilzips 55 %doit(ksbg3760 56 %doit(ksmcds 57 %doit(ksmetros 58 ksplaces 59 %doit(kssdunis 60 %doit(ksstcnty 61 %doit(ksstcntyb 62 %doit(kstrbnas 63 kszips 64 %doit(mobg1740 65 %doit(mobg3710 66 %doit(mobg3760 67 %doit(mobg7000 68 %doit(mobg7040 69 %doit(mobg7920 70 %doit(mobg9999 71 %doit(momcds 72 %doit(mometros 73 %doit(moother 74 %doit(moplaces 75 %doit(mopumas 76 %doit(moschl94 77 %doit(mosl070 78 %doit(mosl080 79 %doit(mosl090 80 %doit(mostcnty 81 %doit(motrbnas 82 %doit(mozips 83 %doit(newmsas 84 %doit(uscntys 85 %doit(usmcds 86 %doit(usmetros 87 %doit(usother 88 %doit(usplaces 89 %doit(usregdiv 90 %doit(usstates 91 ===========================End commented out================================ */ 92 93 94 %include sascode(notify); **** compress_sets (47192) has completed Saturday 15DEC01 13:02 syserr=0 ***** NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414 5 The SAS System 13:02 Saturday, December 15, 2001 NOTE: The SAS System used: real time 23.46 seconds cpu time 18.42 seconds