Try OpenEdge Now
skip to main content
ABL Reference
Handle Attributes and Methods Reference : LAST-PROCEDURE attribute


For AppServer, returns a handle to the last entry in the list of remote persistent, single-run, and singleton procedures that are active on the connected AppServer. For Web services, returns a handle to the last entry in the list of procedure objects associated with the Web service.
Data type: HANDLE
Access: Read-only
Applies to: Server object handle, SESSION system handle
If the current session has no active persistent procedures or the AppServer has no active remote persistent, single-run, and singleton procedures, LAST-PROCEDURE returns the Unknown value (?). To find the previous procedure given the last, access the PREV-SIBLING attribute of the procedure handle you just got.
Note: The PERSISTENT attribute of a remote persistent procedure returned by LAST-PROCEDURE is TRUE only if the RUN statement that executes the procedure includes the PERSISTENT option. The PERSISTENT attribute is FALSE if the persistent procedure was invoked with the SINGLE-RUN or SINGLETON option of the RUN statement.
For information on creating persistent, single-run, or singleton procedures, see the RUN statement reference entry. For more information on the AppServer, see OpenEdge Application Server: Developing AppServer Applications. To check a handle for validity, use the VALID-HANDLE function.