1 The SAS System 09:58 Monday, June 19, 2017 NOTE: Copyright (c) 2002-2008 by SAS Institute Inc., Cary, NC, USA. NOTE: SAS (r) Proprietary Software 9.2 (TS2M2) Licensed to THE CURATORS OF THE UNIV OF MISSOURI - T&R, Site 70084282. NOTE: This session is executing on the Linux 2.6.18-417.el5 (LIN X64) platform. You are running SAS 9. Some SAS 8 files will be automatically converted by the V9 engine; others are incompatible. Please see http://support.sas.com/rnd/migration/planning/platform/64bit.html PROC MIGRATE will preserve current SAS file attributes and is recommended for converting all your SAS libraries from any SAS 8 release to SAS 9. For details and examples, please see http://support.sas.com/rnd/migration/index.html This message is contained in the SAS news file, and is presented upon initialization. Edit the file "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.10 seconds cpu time 0.01 seconds NOTE: AUTOEXEC processing beginning; file is /home/blodgettj/autoexec.sas. ****** Standard OSEDA/MCDC autoexec (autoexec9.sas in sascode) rev. 8/20/2015 12:03:05 PM - Begin execution ******* Standard filerefs and librefs assigned ***** NOTE: Libref BASETBLS was successfully assigned as follows: Engine: V9 Physical Name: /pub/data/acs2015/basetbls NOTE: Libref BTABS was successfully assigned as follows: Levels: 1 Engine(1): V9 Physical Name(1): /pub/data/acs2015/basetbls NOTE: Libref BTABS5 was successfully assigned as follows: Engine: V9 Physical Name: /pub/data/acs2015/btabs5yr NOTE: Libref ACS2015 was successfully assigned as follows: Engine: V9 Physical Name: /pub/data/acs2015 NOTE: AUTOEXEC processing completed. 1 x cd /pub/sasfmats/Tools 1 ! ; %let pgm=gen_tr2puma; filename pgm "&pgm..sas"; 2 *--generate the $trpuma format code to look up 2012 PUMA codes (within state) for census tracts. 3 Uses georef.tract_master as source. 4 jgb, 6-17. 5 --; 2 The SAS System 09:58 Monday, June 19, 2017 6 %libname(georef); NOTE: Libref GEOREF was successfully assigned as follows: Engine: V9 Physical Name: /pub/data/georef 7 title 'Generate $tr2puma SAS format codes'; 8 libname sasfmt "/pub/sasctlgs/v9"; NOTE: Libname SASFMT refers to the same physical library as SASCTLGS. NOTE: Libref SASFMT was successfully assigned as follows: Engine: V9 Physical Name: /pub/sasctlgs/v9 9 libname user '/tmp/scratch/user'; NOTE: Libref USER was successfully assigned as follows: Engine: V9 Physical Name: /tmp/scratch/user 10 filename text "/pub/sasfmats/Str2puma.sas"; 11 12 data values; 13 set georef.tract_master16(keep=state esriid county puma county county10c tract tract10c);*<--as created in 13 ! georef/Tools/tract_master16_temp--; 14 output; 15 *--the format will work with the new tract ids or the old. Here we output cases where the tract (or county code) 15 ! changed--; 16 if (tract10c ne tract) or (county10c ne county) then do; 17 esriid=county10c||compress(tract10c,'.'); 18 output; 19 ** keep esriid puma; 20 end; 21 run; NOTE: There were 73057 observations read from the data set GEOREF.TRACT_MASTER16. NOTE: The data set USER.VALUES has 73084 observations and 7 variables. NOTE: DATA statement used (Total process time): real time 0.36 seconds cpu time 0.33 seconds 22 proc sort data=values nodupkeys; by esriid; run; NOTE: There were 73084 observations read from the data set USER.VALUES. NOTE: 2 observations with duplicate key values were deleted. NOTE: The data set USER.VALUES has 73082 observations and 7 variables. NOTE: PROCEDURE SORT used (Total process time): real time 0.03 seconds cpu time 0.04 seconds 23 24 %genfmat(sasin=values, fmatname=tr2puma, fmatlib=sasfmt, 25 argvars=esriid, arglen=11, 26 labelvar=puma, labellen=5,other=' ', 27 runproc=1) *************************************************************** * GENFMAT MACRO REV 8/27/2013 9:58:34 AM BEGIN EXECUTION * * MISSOURI STATE CENSUS DATA CENTER * *************************************************************** 3 The SAS System 09:58 Monday, June 19, 2017 NOTE: The file TEXT is: Filename=/pub/sasfmats/Str2puma.sas, Owner Name=blodgettj,Group Name=mcdc, Access Permission=rw-rw-r--, Last Modified=Mon Jun 19 09:58:15 2017 NOTE: 73088 records were written to the file TEXT. The minimum record length was 0. The maximum record length was 48. NOTE: There were 73082 observations read from the data set USER.VALUES. NOTE: DATA statement used (Total process time): real time 0.06 seconds cpu time 0.05 seconds NOTE: Format $TR2PUMA is already on the library. NOTE: Format $TR2PUMA has been written to SASFMT.FORMATS. NOTE: PROCEDURE FORMAT used (Total process time): real time 0.68 seconds cpu time 0.48 seconds 73116 run; 73117 73118 proc format library=sasfmt; 73119 %include text; NOTE: PROCEDURE FORMAT used (Total process time): real time 0.02 seconds cpu time 0.00 seconds NOTE: Format $TR2PUMA is already on the library. NOTE: Format $TR2PUMA has been written to SASFMT.FORMATS. 146208 run; NOTE: PROCEDURE FORMAT used (Total process time): real time 0.55 seconds cpu time 0.50 seconds 146209 146210 data _null_; infile text obs=50; 146211 input; file print; put _infile_; 146212 title2 "First 50 Lines of Str2puma.sas file"; 146213 run; NOTE: The infile TEXT is: Filename=/pub/sasfmats/Str2puma.sas, Owner Name=blodgettj,Group Name=mcdc, Access Permission=rw-rw-r--, Last Modified=Mon Jun 19 09:58:15 2017, File Size (bytes)=1900243 4 The SAS System 09:58 Monday, June 19, 2017 NOTE: 50 lines were written to file PRINT. NOTE: 50 records were read from the infile TEXT. The minimum record length was 18. The maximum record length was 48. NOTE: The DATA step printed page 1. NOTE: DATA statement used (Total process time): real time 0.01 seconds cpu time 0.00 seconds 146214 *--test use--*; 146215 options fmtsearch=(sasfmt work); 146216 data _null_; 146217 length puma $5 tractid $11; **put fipco= fipco $cocbsa&yr._.; 146218 retain codes 146219 '06037800204 146220 04019470500 146221 04019005300 146222 36085008900 146223 36085009700'; 146224 do i=1 to 5 ; tractid=scan(codes,i); put tractid= tractid $tr2puma.; end; 146225 stop; 146226 run; NOTE: Variable puma is uninitialized. tractid=06037800204 03726 tractid=04019470500 00204 tractid=04019005300 00204 tractid=36085008900 03903 tractid=36085009700 03903 NOTE: DATA statement used (Total process time): real time 0.07 seconds cpu time 0.07 seconds 146227 146228 %include sascode(notify); 0 **** gen_tr2puma (16845) has completed 19JUN17 9:58:17 syserr=0 sysrc= 0 ***** NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414 NOTE: The SAS System used: real time 1.98 seconds cpu time 1.50 seconds