Previous Topic: Using a Template Function to Create a New Function

Next Topic: Creating and Naming Referenced Functions

Copying Internally-Referenced Template Functions

This section describes how the enhanced copy facility processes functions that are called from within the primary (top-level) function. For each called function, the copy process automatically names new functions, selects or creates access paths, and defaults key and non-key parameters.

This table summarizes the process of copying internally-referenced functions.

Source Function based on:

Target Function based on:

Result

*Template file

Model file

If a matching function based on the target file exists, it is used. Otherwise, a new function based on the target file is created. For each new function, the copy process names the function, selects or creates an access path over the target file, and defaults key and non-key parameters.

*Template file

*Template file

Normal copy. Use this to update your template functions.

Model file

*Template file

Normal copy. This is a way to set up your first template functions if you already have functions containing customized actions.

Model file

Model file

Normal copy. Any parameter requirements of these functions are accommodated by the copy process, by the parameter defaulting mechanism, or require developer intervention.