Previous Topic Next topic Print topic


PLIRETV Function

Purpose

Returns a fixed binary integer that is the Open PL/I return code.

Syntax

PLIRETV()

or

PLIRETV

Description

The PLIRETV function returns the most recent value specified by a CALL PLIRETC statement. Note that the precision of the returned value may be smaller than that of the value passed to PLIRETC, and the precision of the value returned to the system at program termination may be even smaller than that returned by PLIRETV, depending on the implementation. (For more information on this implementation, see your Open PL/I User's Guide.) For example, the PLIRETC and PLIRETV routines may preserve their fixed binary (31) value, but the value may be truncated (using the MOD function) to only the rightmost byte of that value when the program exits.

Examples

CALL READ_LINE (BUFFER);
IF PLIRETV ()
THEN PUT LIST ("ERROR ON INPUT");

Restrictions

None.

Previous Topic Next topic Print topic