Qp2EndPase()--End an i5/OS PASE Program


  Syntax
 #include <qp2user.h>

 int Qp2EndPase(void);  

  Service Program Name: QP2USER

  Default Public Authority: *USE

  Threadsafe: No

The Qp2EndPase() function ends any i5/OS 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 i5/OS PASE program.


Usage Notes

  1. Qp2EndPase is normally used to end an i5/OS PASE program that ran the _RETURN i5/OS PASE runtime function (to return without exiting). Such a program remains active (even if it exits or terminates due to an i5/OS PASE signal) until either Qp2EndPase is called or the ILE activation group that called the Qp2RunPase API exits. i5/OS PASE programs that do not use _RETURN are ended automatically before control returns from the Qp2RunPase API.

  2. Qp2EndPase returns without error when no i5/OS PASE program is running in the job.

  3. Start of changeUndefined behavior results if Qp2EndPase is called while the Qp2RunPase API is running (in the same job), or if the job attempts to use the i5/OS PASE program (without restarting it) after Qp2EndPase is called.End of change

Related Information



API introduced: V5R2
Top | i5/OS PASE APIs | APIs by category