SKIP Subcommand (RECORD TYPE command)
SKIP
specifies
record types to skip.
- To skip selected record types, specify the values
for the types you want to skip and then specify
SKIP
. To skip all record types other than those specified on previousRECORD TYPE
commands, specifyOTHER
and thenSKIP
. - For nested files,
SKIP
can be used only withOTHER
. Neither can be used separately. - For grouped files,
OTHER
cannot be specified onSKIP
ifWILD=WARN
(the default) is in effect forFILE TYPE
. - For mixed files, all record types that are not specified
on a
RECORD TYPE
command are skipped by default. No warning is issued (WILD=NOWARN
onFILE TYPE
is the default for mixed files). - For grouped files, a warning message is issued by
default for all record types not specified on a
RECORD TYPE
command (WILD=WARN
onFILE TYPE
is the default for grouped files). If the record types are explicitly specified onSKIP
, no warning is issued.
Examples
FILE TYPE GROUPED FILE=HUBDATA RECORD=#RECID 80 CASE=ID 1-5
WILD=NOWARN.
RECORD TYPE 1.
DATA LIST /MOHIRED YRHIRED 12-15 DEPT79 TO DEPT82 SEX 16-20.
RECORD TYPE OTHER SKIP.
END FILE TYPE.
- The program reads variables from type 1 records and skips all other types.
-
WILD=NOWARN
on theFILE TYPE
command suppresses the warning messages that is issued by default for undefined record types for grouped files. KeywordOTHER
cannot be used when the defaultWILD=WARN
specification is in effect.FILE TYPE GROUPED FILE=HUBDATA RECORD=#RECID 80 CASE=ID 1-5. RECORD TYPE 1. DATA LIST /MOHIRED YRHIRED 12-15 DEPT79 TO DEPT82 SEX 16-20. RECORD TYPE 2,3 SKIP. END FILE TYPE.
- Record type 1 is defined for each case, and record types 2 and 3 are skipped.
-
WILD=WARN
(the default) onFILE TYPE GROUPED
is in effect. The program therefore issues a warning message for any record types it encounters other than types 1, 2, and 3. No warning is issued for record types 2 and 3 because they are explicitly specified on aRECORD TYPE
command.