%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.
 >>-%--+------------+--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).
|
This information center is powered by Eclipse technology. (http://www.eclipse.org)