Retrieves the handle for an object—used with spofgt.
Syntax
01 SPOBJHANDLE PIC S9(9) BINARY.
01 SPRETCODE PIC S9(9) BINARY.
-
CALL ‘SPOGTHDL'
USING SPOBJHANDLE, SPRETCODE.
Arguments
SPOBJHANDLE The handle of the opened object file. Input.Return Values Handle of the current object, or -1 if no current object.
Prerequisites
SPOFFCT, SPOFFNM, SPOFFNR, SPOFFPG, or SPOFFREC.
Alternates
None.
Notes
This procedure returns the handle of the current object in the object file. The handle can then be used with SPOFGT to make the object associated with this handle the current object at any time during processing.