Creating an external stored procedure as reentrant
Reentrant code is code for which a single copy can be used concurrently by two or more processes. For improved performance, prepare your stored procedures to be reentrant whenever possible
About this task
Reentrant stored procedures can improve performance for
the following reasons:
- A reentrant stored procedure does not need to be loaded into storage every time that it is called.
- A single copy of the stored procedure can be shared by multiple tasks in the stored procedures address space. This sharing decreases the amount of virtual storage that is used for code in the stored procedures address space.
Procedure
To create an external stored procedure as reentrant: