Next you need to add a file specification to define the database file to use to fill the subfile.
Follow these steps:
*...1....+....2....+....3....+....4....+....5....+....6....+....7....+. FFilename++ITAFRlen+LKlen+AIDevice+.Keywords+++++++++++++++++++++++++ FCustomL1 IF E K DISK REMOTE
File specifications must follow any H specifications and come before any D specifications. The following values define this F specification:
You might want to add the file keyword BLOCK(*YES)
in applications that use SETTLL or CHAIN. This allows
the RPG compiler to define blocking even if these operation codes are used to access the
file.