Thursday, August 14, 2008

PLI- %REPLACE

The %REPLACE statement allows you to program with named constants.
The %REPLACE statement has the form:
%REPLACE identifier BY constant;

Ex:
%REPLACE MAX BY 100;

The compiler replaces every occurrence of the given identifier in
the source text with the specified constant. The constant can be a
signed or unsigned arithmetic constant, a bit string, or a character

Thursday, August 07, 2008

PLI - ONCODE built in function

The ONCODE built-in function provides a fixed-point binary value that depends on the cause of the last condition. If ONCODE is used out of context, zero is returned.

Syntax:
var=ONCODE ()