Previous Topic: Common Uses of Database ProceduresNext Topic: Area Procedures


Coding Database Procedures

This section provides information to assist in writing database procedures.

You do not have to code or compile database procedures provided with CA IDMS/DB (for example, the IDMSNVLR procedure).

Considerations

There are two ways in which a database procedure can be invoked:

Only fully reentrant assembler and LE-compliant COBOL and PL/I procedures can be invoked directly by IDMSDBMS. All other procedures must be called indirectly, at a cost in performance.

Note: The methods that can be used for invoking a procedure depend on many factors including its language, calling conventions, reentrancy, and whether it issues CA IDMS DML Commands. For more information about the different methods for invoking procedures and how to choose one based on a procedure's characteristics, see 16.5, “Methods for Invoking Procedures”.

Issuing CA IDMS DML Commands in a Database Procedure