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

RIGHT

Example

RIGHT returns a string that is the result of inserting string x at the right end of a string with length n and padded on the left with the character z as needed. If z is omitted, a blank is used as the padding character.

Read syntax diagramSkip visual syntax diagram>>-RIGHT(x,n-+----+-)------------------------------------------><
             '-,z-'
 
x
Expression. x must have a computational type and can have a character type. If not, it is converted to character.
n
Expression. n must have a computational type and is converted to FIXED BINARY(31,0).
z
Expression. If specified, z must have the type CHARACTER(1) NONVARYING type.

Terms of use | Feedback

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