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

Example

  dcl Source char value('Feel the Power');
  dcl Target20 char(20);
  dcl Target21 char(21);
 
  Target20 = centerright (Source, length(Target20), '*');
             /* '***Feel the Power***' - exactly centered */
 
  Target21 = centerright (Source, length(Target21), '*');
             /* '****Feel the Power***' - leaning right! */

If z is omitted, a blank is used as the padding character.


Terms of use | Feedback

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