Previous Topic: Special Considerations for EDTTRN/DSPTRN Template Functions

Next Topic: Copying Internally-Referenced Template Functions

Using a Template Function to Create a New Function

The following is an outline of one way to create new functions based on a template function.

  1. Go to the Edit Functions panel for the file on which the new functions are to be based.
  2. Press F21 (Copy a *Template function). The Edit Functions panel displays all functions based on the *Template file.
  3. Type X to select the function to be used as the template and press Enter.
  4. The Copy Function panel appears.

Another way to create a new function from a template function is to go to the Edit Functions panel for the *Template file and type C next to the template function you want to use.

Note: For the primary function, the validation performed by the Copy Function panel for copies from the *Template file is identical to that performed for an ordinary file. Specifically, the access path must exist and the new function must not exist.

You are responsible for verifying and completing the definition of the newly-created target functions.