#

# LogiView

## How to Create a Procedure

| ### What to do:
| As a prerequisite for this example, a DocuLogicModel must have been created as described in "How to Create a Logic Model". Additionally, you should have defined the DCU application as described in "How to Create Application Types".
| Open the Logic Models/Procedures form from the Manager > Macro > LogiView > Logic Models menu or click the button .
| Switch to Insert mode with the button .
| Select DocuLogicModel from the Logic Model field menu.
| Enter DocuProcedure as procedure name in the Name field.
| In order to prevent confusion with LogiView commands or functions, logic model names should contain capital letters.
| Enter Procedure for documentation in the Comment field.
| The macro type is automatically set to P-Procedure.
| Click the Usage (Use) field.
| Click the button . The selection menu is opened.
| Select the DCU | Documentation entry and click the button to save it.
| Click the button to save the entry.
| The Allow multiple hits and the ELSE-line field are only evaluated for decision tables. The Version, Time in memory if not used, Decision Table / Procedure ID (Number), Progress Indicator (PI), and Current Decision Table/Procedure (C) fields are filled in automatically. For performance reasons, the Time in memory if not used field value may be edited. (This value defines for how long "unused" decision tables / procedures are kept in the main memory.) The higher this value, the longer the decision table / procedure will remain in the main memory before it is deleted.
| The list should now look as follows: