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

CENTERRIGHT

Example

CENTERRIGHT returns a string that is the result of inserting string x in the center (or one position to the right of center) of a string with length y and padded on the left and on the right with the character z as needed. Specifying a value for z is optional.

Read syntax diagramSkip visual syntax diagram>>-+-CENTERRIGHT-+--(x,y-+----+-)------------------------------><
   '-CENTRERIGHT-'       '-,z-'
 
x
Expression that is converted to character.
y
Expression that is converted to FIXED BINARY(31,0).
z
Optional expression. If specified, z must be CHARACTER(1) NONVARYING type.

Terms of use | Feedback

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