Copying Functions › Function Templates › Assigning Access Paths for Referenced Functions
Assigning Access Paths for Referenced Functions
When the copy process is unable to match an existing function based on the target file, it creates a new function. During this process it often needs to select an appropriate access path also based on the target file. It does this as follows:
- It tries to find and use an access path of the same name and type (RTV, RSQ, UPD, and so on).
- If there is no match by name, it selects the default access path of the same type.
- If a default access path of the same type does not exist, it selects the first access path of the same type alphabetically by name.
- If unable to find an access path of the same type, it creates a new one. A message displays when a new access path is created.
Note: Since new access paths default to the primary key, you may need to edit new access paths prior to source generation.
If a new span (SPN) access path is created, it is created without formats.
For more information about:
- EDTTRN/DSPTRN functions, see Special Considerations for EDTTRN/DSPTRN Template Functions
- Adding formats to a span access path, see Building Access Paths, in the chapter, "Adding Access Paths."