Roger Sage CDL / MELVYL SSH Library Home
SSHL Home Data, Gov't & GIS Home
Social Sciences Data Collection (SSDC)

Codebook for OSIRIS/ASCII Data Dictionary:

The following information gives the layout of the OSIRIS Dictionary as it has been converted by SSDC staff into ASCII. OSIRIS Dictionaries are used to describe OSIRIS Data Files. Note that each record (line) in the Dictionary has 80 characters followed by a line feed character (decimal 10 -- noted as "LF" in the codebook). Note also that the Dictionary consists of a one line "Dictionary Descriptor Record" followed by multiple "Variable Descriptor Records," one line for each variable in the Data File. The Codebook below describes these two kinds of records. The Dictionary can be read with standard statistical software, if desired.

EXAMPLE OF OSIRIS/ASCII DATA DICTIONARY RECORDS



--------------------------------------------------------------------------------
[Ruler:] 1         2         3         4         5         6         7         8
123456789*123456789*123456789*123456789*123456789*123456789*123456789*123456789*
--------------------------------------------------------------------------------
[one descriptor record:]
1    1    9999 
[multiple variable records:]
T    1 0 0 ICPSR STUDY NUMBER-6067     1     4 0     1 1
T    2 0 0 ICPSR EDITION NUMBER        5     1 0     1 2
T    3 0 0 ICPSR PART NUMBER           6     1 0     1 3
T    4 0 0 CASE ID NUMBER              7     4 0     1 4
T    5 0 0 PRIMARY AREA CODE          11     3 0     1 0000000 5
T 3086 0 0 92PRE: IWER ETHNICITY    1916     1 0     1         0000009 108
T 3087 0 0 92PRE: IWER AGE BRACK    1917     1 0     1         0000009 -114  REC
T 3088 0 0 92PRE: IWER YRS EXPER    1918     2 0     1         0000099 -115  REC
--------------------------------------------------------------------------------

CODEBOOK

Type-1 OSIRIS Dictionary -- ASCII Version
Dictionary Descriptor Record
ColumnContent
11
2-5(blank)
6-9First Variable Number
10(blank)
11-14Last Variable Number
15-80(blank)
81Line Feed
Variable Descriptor Record
ColumnContent
1T
2-6Variable Number
7(blank)
8 Character Type and Storage Mode
  • 0: Numeric, character mode
  • 1: Alphabetic, character mode
  • 2: Numeric, fixed-point binary mode
  • 3: Numeric, floating-point binary
9blank
10 Variable type
  • 0: Single response
  • 1: Multiple response
11blank
12-35Variable Name (or blanks)
36-40Starting location of the variables within each data record
41(blank)
42-46 Field width of one (or the only) response
  • 1-9: numeric variables
  • 1-255: alphabetic variables
47(blank)
48 Number of Decimal places
  • 0-9: numeric variables
  • 0: alphabetic variables
49(blank)
50-54Number of responses. If the variable has more than 1 response; columns 8-48 describe the first response and the remaining responses are assumed to be in adjacent fields of the same description.
55(blank)
56-62First missing data code (or blanks)
63(blank)
64-70Second missing data code (or blanks)
71(blank)
72-75Reference value (or blanks)
76-77(blanks)
78-80Study ID (or blanks)
81Line Feed

Note that a Type-1 data file has, fixed-length records, i.e., the record length is equal to the sum of the widths of all of the response fields of all the variables.

ROGER | Sage | CDL/MELVYL | UCSD Home | UCSD Libraries Home

Official Web Page of the University of California, San Diego
© Copyright 2000, UCSD, All Rights Reserved. This site may not be reproduced.
Social Sciences & Humanities Library, 9500 Gilman Drive, La Jolla, CA 92093, 858-534-3336
Email SSDC Webmaster