A record name is a symbolic name assigned to a record format in an externally described file. The following additional rules apply to record names in an RPG IV program:
If the file is qualified, due to the QUALIFIED or LIKEFILE keyword on the File specification, the record name is specified as a qualified name in the form FILENAME.FMTNAME. The record name must be unique within the other record names of the file.
If the file is not qualified, the record name is specified without qualification in the form FMTNAME. If the file is a global file, the record name must be unique within the other global names. If the file is a local file in a subprocedure, the record name must be unique within the other local names.
Note:
See RENAME(Ext_format:Int_format) for information on how to handle the situation where the record name conflicts with other names in your RPG program.