1 The SAS System 13:27 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.14 seconds cpu time 0.03 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:27 PID=47258 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:27 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 /*<=========================Comment out===================================== 40 %doit(ari,sumlev,doover=1); 41 42 %doit(arzips,doover=1) 43 44 %doit(azzips) 45 %doit(iai,sumlev) 46 ===========================End commented out================================ */ 47 3 The SAS System 13:27 Saturday, December 15, 2001 48 %doit(ilbg7040,county,county tract bg) NOTE: There were 575 observations read from the data set STF903.ILBG7040. NOTE: The data set STF903.ILBG7040C has 575 observations and 3353 variables. NOTE: Compressing data set STF903.ILBG7040C decreased size by 72.22 percent. Compressed is 55 pages; un-compressed would require 198 pages. NOTE: DATA statement used: real time 1.74 seconds cpu time 1.20 seconds NOTE: Simple index COUNTY has been defined. NOTE: Changing the name STF903.ILBG7040 to STF903.ILBG7040B (memtype=DATA). NOTE: Changing the name STF903.ILBG7040C to STF903.ILBG7040 (memtype=DATA). NOTE: PROCEDURE DATASETS used: real time 0.27 seconds cpu time 0.17 seconds 49 %doit(ilbg9999,county,county tract bg) NOTE: There were 2258 observations read from the data set STF903.ILBG9999. NOTE: The data set STF903.ILBG9999C has 2258 observations and 3353 variables. NOTE: Compressing data set STF903.ILBG9999C decreased size by 72.86 percent. Compressed is 206 pages; un-compressed would require 759 pages. NOTE: DATA statement used: real time 4.99 seconds cpu time 4.44 seconds NOTE: Simple index COUNTY has been defined. NOTE: Changing the name STF903.ILBG9999 to STF903.ILBG9999B (memtype=DATA). NOTE: Changing the name STF903.ILBG9999C to STF903.ILBG9999 (memtype=DATA). NOTE: PROCEDURE DATASETS used: real time 0.68 seconds cpu time 0.61 seconds 50 %doit(ilhnotsl,county) NOTE: There were 30847 observations read from the data set STF903.ILHNOTSL. NOTE: The data set STF903.ILHNOTSLC has 30847 observations and 3353 variables. NOTE: Compressing data set STF903.ILHNOTSLC decreased size by 80.50 percent. Compressed is 2006 pages; un-compressed would require 10289 pages. NOTE: DATA statement used: real time 1:09.94 cpu time 53.57 seconds NOTE: Simple index COUNTY has been defined. NOTE: Changing the name STF903.ILHNOTSL to STF903.ILHNOTSLB (memtype=DATA). NOTE: Changing the name STF903.ILHNOTSLC to STF903.ILHNOTSL (memtype=DATA). NOTE: PROCEDURE DATASETS used: 4 The SAS System 13:27 Saturday, December 15, 2001 real time 7.79 seconds cpu time 6.01 seconds 51 %doit(ilhstl,county) NOTE: There were 1926 observations read from the data set STF903.ILHSTL. NOTE: The data set STF903.ILHSTLC has 1926 observations and 3353 variables. NOTE: Compressing data set STF903.ILHSTLC decreased size by 81.48 percent. Compressed is 120 pages; un-compressed would require 648 pages. NOTE: DATA statement used: real time 4.86 seconds cpu time 3.44 seconds NOTE: Simple index COUNTY has been defined. NOTE: Changing the name STF903.ILHSTL to STF903.ILHSTLB (memtype=DATA). NOTE: Changing the name STF903.ILHSTLC to STF903.ILHSTL (memtype=DATA). NOTE: PROCEDURE DATASETS used: real time 0.50 seconds cpu time 0.36 seconds 52 %doit(ilmcds,county) NOTE: There were 1679 observations read from the data set STF903.ILMCDS. NOTE: The data set STF903.ILMCDSC has 1679 observations and 3353 variables. NOTE: Compressing data set STF903.ILMCDSC decreased size by 69.08 percent. Compressed is 175 pages; un-compressed would require 566 pages. NOTE: DATA statement used: real time 4.06 seconds cpu time 3.34 seconds NOTE: Simple index COUNTY has been defined. NOTE: Changing the name STF903.ILMCDS to STF903.ILMCDSB (memtype=DATA). NOTE: Changing the name STF903.ILMCDSC to STF903.ILMCDS (memtype=DATA). NOTE: PROCEDURE DATASETS used: real time 0.64 seconds cpu time 0.50 seconds 53 %doit(ilmetros) NOTE: There were 14 observations read from the data set STF903.ILMETROS. NOTE: The data set STF903.ILMETROSC has 14 observations and 3353 variables. NOTE: Compressing data set STF903.ILMETROSC decreased size by 0.00 percent. Compressed is 11 pages; un-compressed would require 11 pages. NOTE: DATA statement used: real time 0.44 seconds cpu time 0.26 seconds 5 The SAS System 13:27 Saturday, December 15, 2001 NOTE: Changing the name STF903.ILMETROS to STF903.ILMETROSB (memtype=DATA). NOTE: Changing the name STF903.ILMETROSC to STF903.ILMETROS (memtype=DATA). NOTE: PROCEDURE DATASETS used: real time 0.07 seconds cpu time 0.03 seconds 54 %doit(ilother) NOTE: There were 2359 observations read from the data set STF903.ILOTHER. NOTE: The data set STF903.ILOTHERC has 2359 observations and 3353 variables. NOTE: Compressing data set STF903.ILOTHERC decreased size by 64.69 percent. Compressed is 280 pages; un-compressed would require 793 pages. NOTE: DATA statement used: real time 5.71 seconds cpu time 4.76 seconds NOTE: Changing the name STF903.ILOTHER to STF903.ILOTHERB (memtype=DATA). NOTE: Changing the name STF903.ILOTHERC to STF903.ILOTHER (memtype=DATA). NOTE: PROCEDURE DATASETS used: real time 0.06 seconds cpu time 0.03 seconds 55 %doit(iltrbnas,county,county tract) NOTE: There were 2841 observations read from the data set STF903.ILTRBNAS. NOTE: The data set STF903.ILTRBNASC has 2841 observations and 3353 variables. NOTE: Compressing data set STF903.ILTRBNASC decreased size by 62.75 percent. Compressed is 355 pages; un-compressed would require 953 pages. NOTE: DATA statement used: real time 6.83 seconds cpu time 5.74 seconds NOTE: Simple index COUNTY has been defined. NOTE: Changing the name STF903.ILTRBNAS to STF903.ILTRBNASB (memtype=DATA). NOTE: Changing the name STF903.ILTRBNASC to STF903.ILTRBNAS (memtype=DATA). NOTE: PROCEDURE DATASETS used: real time 1.07 seconds cpu time 0.95 seconds 56 %doit(ilzips,zip,zip) NOTE: There were 1239 observations read from the data set STF903.ILZIPS. NOTE: The data set STF903.ILZIPSC has 1239 observations and 3351 variables. NOTE: Compressing data set STF903.ILZIPSC decreased size by 62.05 percent. Compressed is 159 pages; un-compressed would require 419 pages. NOTE: DATA statement used: real time 3.72 seconds cpu time 2.66 seconds 6 The SAS System 13:27 Saturday, December 15, 2001 NOTE: Simple index ZIP has been defined. NOTE: Changing the name STF903.ILZIPS to STF903.ILZIPSB (memtype=DATA). NOTE: Changing the name STF903.ILZIPSC to STF903.ILZIPS (memtype=DATA). NOTE: PROCEDURE DATASETS used: real time 0.54 seconds cpu time 0.42 seconds 57 58 /*<=========================Comment out===================================== 59 %doit(ksbg3760,county,county tract bg) 60 %doit(ksmcds,county) 61 %doit(ksmetros) 62 %doit(ksplaces,,placefp) 63 %doit(kssdunis) 64 *doit(ksstcnty,county); 65 %doit(kstrbnas,county tract,county) 66 %doit(kszips,zip,zip) 67 %doit(mobg1740,county,county tract bg) 68 %doit(ilbg7040,county,county tract bg) 69 %doit(mobg3710,county,county tract bg) 70 %doit(mobg3760,county,county tract bg) 71 %doit(mobg7000,county,county tract bg) 72 %doit(mobg7040,county,county tract bg) 73 %doit(mobg7920,county,county tract bg) 74 %doit(mobg9999,county,county tract bg) 75 %doit(momcds,county,county) 76 %doit(mometros) 77 %doit(moother) 78 %doit(ilother) 79 %doit(moplaces,placefp) 80 %doit(mopumas) 81 %doit(moschl94) 82 %doit(mosl070,county,county) 83 %doit(mosl080,county,county) 84 %doit(mosl090,county,county) 85 %doit(mostcnty,,county) 86 %doit(motrbnas,county,county tract) 87 %doit(mozips,zip,zip) 88 %doit(newmsas) 89 %doit(uscntys,state,state county) 90 %doit(usmcds,state,state county) 91 %doit(usmetros) 92 %doit(usother) 93 %doit(usplaces,state,state place) 94 %doit(usregdiv) 95 %doit(usstates,state,state) 96 ===========================End commented out================================ */ 97 98 99 %include sascode(notify); **** compress_sets (47258) has completed Saturday 15DEC01 13:27 syserr=0 ***** NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414 7 The SAS System 13:27 Saturday, December 15, 2001 NOTE: The SAS System used: real time 1:54.89 cpu time 1:28.65