Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

%REPLACE Statement

The %REPLACE statement allows for the immediate replacement of a name with a string constant, or a numeric constant. The name does not need to be a declared variable to have a value assigned to it.

Read syntax diagramSkip visual syntax diagram>>-%--+------------+--REPLACE--identifier--+-BY---+------------->
      | .--------. |                       '-WITH-'
      | V        | |
      '---label:-+-'
 
>--+-string-constant-----+--;----------------------------------><
   '-arithmetic-constant-'
 
identifier
Name to be replaced.
string-constant
The name, if undeclared, will be given the CHARACTER attribute
arithmetic-constant
The name, if undeclared, will be given the FIXED attribute

Under the FIXED(DEC) option, the value will be converted to FIXED DEC(5,0).

Under the FIXED(BIN) option, the value will be converted to FIXED BIN(31,0).


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)