Special registers in a stored procedure

You can use all special registers in a stored procedure. However, you can modify only some of those special registers. After a stored procedure completes, Db2 restores all special registers to the values that they had before invocation.