GRAPHIC can be used to explicitly convert character (or mixed
character) data to GRAPHIC data. All other data first converts to
character, and then to the GRAPHIC data type.
GRAPHIC returns the graphic value of x, with a length
in graphic symbols specified by y.
Characters convert to graphics. The content of x is
checked for validity during conversion, using the same rules as
for checking graphic and mixed character constants.
 >>-GRAPHIC(x-+----+-)------------------------------------------><
'-,y-'
|
- x
- Expression. When x is GRAPHIC, it is subject to a
length change, with applicable padding or truncation. When x is
nongraphic, it is converted to character, if necessary. SBCS characters
are converted to equivalent DBCS characters.
- y
- Expression. If necessary, y is converted to a real
fixed-point binary value. If y is omitted, the length is
determined by the rules for type conversion.
y must not be negative.
If y = 0, the result is the null graphic string.
The following rules apply:
- If y is greater than the length needed to contain the
graphic string, the result is padded with graphic blanks.
- If y is less than the length needed to contain the
graphic string, the result is truncated.
|
This information center is powered by Eclipse technology. (http://www.eclipse.org)