You can create a new procedure template in your DBMS definition file or as part of your model. You can begin by copying an existing template or write one from scratch.
Select Database > Edit Current DBMS to open the DBMS definition file in the resource editor, and then click the Procedure Templates tab:
Click the Add a Row tool to add a new blank template to the list.
Type a new name and code for the new template and click Apply to commit its creation.
Click the Properties tool to open the property sheet of the new procedure template:
Click the Definition tab and enter or modify the definition code. You can use PDM variables and macros and various other tools available from the toolbar (see SQL Editor Tools).
You can also modify other of the procedure template's properties. For a full list of the properties available, see Procedure Template Properties.
Click OK in each of the dialog boxes.
A confirmation box will appear, asking if you want to save the changes to the DBMS.