Previous Topic Next topic Print topic


UNSPEC Function

Purpose

Returns a bit string containing the internal representation of the specified value.

Syntax

UNSPEC(x)

or

UNSPEC(SUBSTR(char_string,i,j))

Parameters

x is a reference to a scalar variable.

?

Description

The UNSPEC function returns a bit string containing the internal representation of x.

The length and content of the result value depend on the data type and value of x and are implementation-defined. For details, see your Open PL/I User's Guide.

Examples

DECLARE CH CHAR(1);
DECLARE MINUS_ONE FIXED BIN;
MINUS_ONE = -1;
UNSPEC(CH) = UNSPEC(MINUS_ONE);
BIT(8) = UNSPEC(CH);   /* '11111111'B */
Previous Topic Next topic Print topic