REPEATING DATA
REPEATING DATA
reads input cases whose records contain repeating groups of data.
For each repeating group, REPEATING DATA
builds one output case in the active
dataset.
REPEATING DATA [FILE=file]
[/ENCODING='encoding specification']
/STARTS=beg col[-end col] /OCCURS={value }
{varname}
[/LENGTH={value }] [/CONTINUED[=beg col[-end col]]]
{varname}
[/ID={col loc}=varname] [/{TABLE }]
{format } {NOTABLE}
/DATA=variable specifications
Release History
Release 16.0
-
ENCODING
subcommand added for Unicode support.
Example
INPUT PROGRAM.
DATA LIST / SEQNUM 2-4 NUMPERS 6-7 NUMVEH 9-10.
REPEATING DATA STARTS=12 /OCCURS=NUMVEH
/DATA=MAKE 1-8 (A) MODEL 9 (A) NUMCYL 10.
END INPUT PROGRAM.