Notes
Descriptor persistence: Local descriptors are implicitly deallocated
based on the CLOSQLCSR option:
- For ILE programs, if CLOSQLCSR(*ENDACTGRP) is specified (the default),
local descriptors are implicitly deallocated when the activation group ends.
If CLOSQLCSR(*ENDMOD) is specified, local descriptors are implicitly deallocated
on exit from the module.
- For OPM programs, if CLOSQLCSR(*ENDPGM) is specified (the default), local
descriptors are implicitly deallocated when the program ends. If CLOSQLCSR(*ENDSQL)
is specified, local descriptors are implicitly deallocated when the first
SQL program on the call stack ends. If CLOSQLCSR(*ENDJOB) is specified, local
descriptors are implicitly deallocated when the job ends.
Global descriptors are implicitly deallocated when the activation group
ends.
Both local and global descriptors can be explicitly deallocated
using the DEALLOCATE DESCRIPTOR statement.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.