In Strategy Developer, sometimes users wish to call a procedure that will manipulate the data after the execution of a data mart report.
PL/SQL stored procedures may contain only Data Manipulation Language (DML) and not Data Definition Language (DDL) unless users have modified this in the latest version of Oracle. This means only SELECT, INSERT, UPDATE or DELETE statements and conditional/programmatic logic are valid. Users cannot include any statements that CREATE or DROP anything, like a view or an index.
To invoke the procedure in Strategy Developer, users need to follow the steps below:
In case that more than one statement has to be inserted, users must define each procedure call as a Report Post Statement following these steps:
The procedure shown above is an example for Oracle, but the same idea can be appropriately used for any Relational Database Management System (RDBMS).