Formatting Functions

Is a non-SAA built-in function REXX/CICS provides.

Function Description
CENTER or CENTRE Returns a string of a specified length with the input string centered in it, with pad characters added as necessary to make up the length.
COPIES Returns the specified number of concatenated copies of the input string.
FORMAT Returns the input number, rounded and formatted.
JUSTIFY Returns a specified string formatted by adding pad characters between words to justify to both margins.
LEFT Returns a string of the specified length, truncated or padded on the right as needed.
RIGHT Returns a string of the specified length, truncated or padded on the left as needed.
SPACE Returns the words in the input string with a specified number of pad characters between each word.

Reference Reference

Feedback


Timestamp icon Last updated: Tuesday, 7 January 2014


http://pic.dhe.ibm.com/infocenter/cicsts/v5r1/topic/com.ibm.cics.rexx.doc//dfhrx/rvse032.html