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

GRAPHIC

Example 1
Example 2

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.

Read syntax diagramSkip visual syntax diagram>>-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:


Terms of use | Feedback

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