FILE Subcommand (REPEATING DATA command)
REPEATING DATA
always
reads the file specified on its associated DATA LIST
or FILE TYPE
command. The FILE
subcommand
on REPEATING DATA
explicitly specifies
the name of the file.
-
FILE
must specify the same file as its associatedDATA LIST
orFILE TYPE
command.
Example
INPUT PROGRAM.
DATA LIST FILE=VEHICLE / SEQNUM 2-4 NUMPERS 6-7 NUMVEH 9-10.
REPEATING DATA FILE=VEHICLE /STARTS=12 /OCCURS=NUMVEH
/DATA=MAKE 1-8 (A) MODEL 9 (A) NUMCYL 10.
END INPUT PROGRAM.
LIST.
-
FILE
onREPEATING DATA
specifically identifies the VEHICLE file, which is also specified on theDATA LIST
command.