6.3 Adding the File Specification

Next you need to add a file specification to define the database file to use to fill the subfile.

Follow these steps:

  1. The file specification must come before any C specifications and after any H specifications, so scroll to the top of your program source.
  2. Enter the following File specification for the CUSTOML1 logical file:
  3. 
    *...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.

Click on to indicate that you've done all the steps.