FILE TYPE-END FILE TYPE
The FILE TYPE-END FILE TYPE
structure defines data for any one
of the three types of complex raw data files: mixed files, which contain several types of
records that define different types of cases; hierarchical or nested files, which
contain several types of records with a defined relationship among the record types; or grouped
files, which contain several records for each case with some records missing or duplicated.
For mixed file types:
FILE TYPE MIXED [FILE='file'] [ENCODING='encoding specification']
RECORD=[varname] column location [(format)]
[WILD={NOWARN}]
{WARN }
For grouped file types:
FILE TYPE GROUPED [FILE='file'] [ENCODING='encoding specification']
RECORD=[varname] column location [(format)]
CASE=[varname] column location [(format)]
[WILD={WARN }] [DUPLICATE={WARN }]
{NOWARN} {NOWARN}
[MISSING={WARN }] [ORDERED={YES}]
{NOWARN} {NO }
For nested file types:
FILE TYPE NESTED [FILE='file'] [ENCODING='encoding specification']
RECORD=[varname] column location [(format)]
[CASE=[varname] column location [(format)]]
[WILD={NOWARN}] [DUPLICATE={NOWARN}]
{WARN } {WARN }
{CASE }
[MISSING={NOWARN}]
{WARN }
END FILE TYPE
** Default if subcommand or keyword omitted.
Release History
Release 16.0
-
ENCODING
subcommand added for Unicode support.
Example
FILE TYPE MIXED RECORD=RECID 1-2.
RECORD TYPE 23.
DATA LIST /SEX 5 AGE 6-7 DOSAGE 8-10 RESULT 12.
END FILE TYPE.
BEGIN DATA
21 145010 1
22 257200 2
25 235 250 2
35 167 300 3
24 125150 1
23 272075 1
21 149050 2
25 134 035 3
30 138 300 3
32 229 500 3
END DATA.