Statscraft 0.61.0, release v0.61.0
REPEATING DATA
In an input program or FILE TYPE: one case per repeating group of a record.
Syntax
REPEATING DATA [FILE='path' | handle] [/ENCODING='UTF-8'] /STARTS=column[-column]
/OCCURS=n [/LENGTH=n] [/CONTINUED[=column[-column]]] [/ID=columns=var]
[/TABLE | /NOTABLE] /DATA=variables as on DATA LIST.
STARTS, OCCURS, LENGTH and the end column on STARTS take a number or a variable.
Reads OCCURS groups from the record the last DATA LIST read, starting in column STARTS; the columns on DATA count from the start of a group. A group is LENGTH columns, by default up to the last variable or skip. Each group gives a case with the values of the other variables spread to it. CONTINUED: groups that do not fit before the end column (default 80, or the longest record) go on in the next records, from the column given (default 1); ID checks that an identifier on those records matches.
OCCURS missing or below 1 gives no case.
Example
DATA LIST /truck 1-3 nload 7-8.
REPEATING DATA STARTS=10 /OCCURS=nload
/DATA=cargo 1-6 (A) crates 8-9.
statscraft help REPEATING DATA prints the same text in the terminal. All commands