PL/1 Built-in Functions
The following is a list of some of the built-in functions that are available for use with PL/1. Please note that there are a large number of floating point mathematical built-in functions available but which are not included in this list.
- ABS(number)
- ADD(number, number, precision, decimals)
- ALL(bit_string)
- ANY(bit_string)
- CEIL(value)
- CSTG(field)
- CURRENTSTORAGE(field)
- DATE()
- DECIMAL(number)
- DIM(array, dimension)
- DIVIDE(number, number, precision, decimals)
- FLOOR(value)
- HBOUND(array, dimension)
- HIGH(length)
- INDEX(scan string, find_this)
- LBOUND(array, dimension)
- LENGTH(var_char)
- LOW(length)
- MAX(up_to_64_parms)
- MIN(up_to_64_parms)
- MOD(number, number)
- MULTIPLY(number, number, precision, decimals)
- PRECISION(number, precision, decimals)
- PROD(array_to_be_multiplied)
- ROUND(number, decimals)
- SIGN(number)
- STG(field)
- STORAGE(field)
- STRING(group_item)
- SUBSTR(string, start_position, length)
- SUM(array_to_be_added)
- TRANSLATE(string, replacement_chars, chars_to_replace)
- TRUNC(number)
- UNSPEC(variable)
- VERIFY(string, valid_characters)


