*********************************************************************** School Survey on Crime and Safety (SSOCS) 2000 *********************************************************************** Public Use File This disk contains the data and documentation for the School Survey on Crime and Safety, sponsored by the National Center for Education Statistics, and conducted in the spring and summer of 2000. The following files are provided. SSOCS 2000 data file SSOCS.sd2 - SAS data file (version 6.08-6.12) SSOCS.sas7bdat - SAS data file (version 8) fmt.sd2 - SAS format file (version 6.08-6.12) formats.sas7bcat - SAS format file (version 8) formats.sc2 - SAS format catalog (version 6.08-6.12) SSOCS1.sav - SPSS for Windows data file SSOCS2.por - SPSS portable data file SSOCS.sys - SPSS for DOS data file SSOCS.dta - STATA (v4/5) data file (4 byte floats) SSOCS-ff.txt - ASCII (text) fixed format data file for importation into other software packages SSOCS-cd.txt - ASCII (text) comma-delimited data file for importation into other software packages Pub.sas - SAS program to read the Public Use ASCII (text) fixed format data file into a SAS data set. Pub.sps - SPSS program to read the Public Use ASCII (text) fixed format data file into a SPSS data set. layout.txt - ASCII file with variable names and column locations for SSOCS.txt SSOCS documentation SSOCSgde.pdf - User's manual for SSOCS data file SSOCSddd.pdf - Detailed data documentation for SSOCS data file *********************************************************************** A note to SAS users *********************************************************************** The SAS data file is provided in the format used for SAS versions 6.08 through 6.12, in order to increase the accessibility of the file to users who may not have the most recent versions. Generally it is best not to mix multiple versions of SAS files in the same directory. For those users with more recent versions of SAS, it would be best to use SAS to first read the file from the CD-ROM (or some location where it has been copied), and then save it in another directory. (SAS will automatically save it in the appropriate version if there are no older versions of SAS files in that directory.) The SAS data set has user-defined value-label formats. These are provided in the fmtlin.sd2 data set. The following code can be used to convert the SAS format file to a SAS format catalog. libname library "path" ; /* the path to the above SAS data sets */ proc format library=library cntlin=library.fmtlin fmtlib ; run ; For example, if the data sets are in a library called "c:\ssocs" then the code might say: libname ssocs "c:\ssocs"; proc format library=ssocs cntlin=ssocs.fmtlin fmtlib ; run ; As another example, in order to save the format catalog using a more recent version of SAS, the following code could be used: libname in "c:\ssocs"; libname out "c:\ssocs2000"; proc format library=out cntlin=in.cntlin fmtlib ; run *********************************************************************** Reading the ASCII (text) fixed format data file *********************************************************************** This disk contains a SAS program and a SPSS program to read the ASCII (text) fixed format data file (ssocs-ff.txt). To use the SAS program (PUB.sas), you must specify the correct path to the ASCII (text) fixed format data file (ssocs-ff.txt). The default location specified in the program is c:\ssocs. To specify the a different location for ssocs-ff.txt modify the following macro variable statement: %let path = c:\ssocs ; For example, if you have copied ssocs-ff.txt to c:\Projects, then make this change to the macro variable: %let path = c:\Projects ; Similarly, to use the SPSS program (PUB.sps), you must specify the correct path to the ASCII (text) fixed format data file (ssocs-ff.txt). The default location specified in the program is C:\WINDOWS\DESKTOP\. To specify the a different location for ssocs-ff.txt modify the following statement: /FILE = 'C:\WINDOWS\DESKTOP\SSOCS-ff.txt' For example, if you have copied ssocs-ff.txt to c:\Projects, then make this change to the statement: /FILE = 'C:\projects\SSOCS-ff.txt'