The Qp2EndPase() function ends any IBM® i PASE program currently running in
the job.
Parameters
None.
Authorities
None.
Return Value
The function result is nonzero if an error is detected attempting to end the
IBM PASE for i program.
Usage Notes
Qp2EndPase is normally used to end an IBM PASE for i program that ran the
_RETURN IBM PASE for i runtime function (to return without
exiting). Such a program remains active (even if it exits or terminates due to
an IBM PASE for i signal) until either Qp2EndPase is called or the ILE activation
group that called the Qp2RunPase API exits. IBM PASE for i programs that do not
use _RETURN are ended automatically before control returns
from the Qp2RunPase API.
Qp2EndPase returns without error when no IBM PASE for i program is running in
the job.
Undefined behavior results if Qp2EndPase is called while the Qp2RunPase API
is running (in the same job), or if the job attempts to use the IBM PASE for i program
(without restarting it) after Qp2EndPase is called.