File Name

This part of assignment-name must be a 1 through 10-character system name of the actual external file– physical or logical database, or device. This external file has to be created before compiling the program only when it is used by a COPY statement, DDS (data description specifications) or DD format, within this program.

A quoted file name can be specified within literal-1. For example, if an IBM® i system file has a quoted name of "sysfile", the entry for literal-1 is coded as follows:
"device-""sysfile""-SI"

For database files, the member name cannot be specified in the program. If a member other than the first member is to be specified, the Override with Database File (OVRDBF) CL command must be used at execution time to specify the member name.

This file name is the name of the IBM i object that is displayed by the Display Program References (DSPPGMREF) command. Since no external medium is used for an SD file, the DSPPGMREF command does not list any files defined for an SD file.

The file name can be changed at execution time with the TOFILE parameter of the OVRxxxF CL command. To ensure consistent results, the device type associated with the TOFILE parameter should be the same as that specified for assignment-name-1 or literal-1.