Question keyboard key
REXX

REXX – String Manipulating Functions

The following built-in Rexx String Manipulating Functions analyse a string supplied in the argument (or a variable representing a string) and return a particular value.   Function Description ABBREV Returns a string indicating if one string is equal to the specified number of leading characters of another string. DELSTR Returns a […]

Question keyboard key
REXX

REXX – Formatting Functions

The following built-in Rexx Formatting Functions manipulate the characters and spacing in strings supplied in the argument.   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 […]

Question keyboard key
REXX

REXX – Conversion Functions

The following built-in Rexx Conversion Functions convert one type of data representation to another type of data representation.   Function Description B2X Returns a string, in character format, that represents the input binary string converted to hexadecimal. (Binary to hexadecimal) C2D Returns the decimal value of the binary representation of the […]

Question keyboard key
REXX

REXX – Comparison Functions

The following built-in Rexx Comparison Functions compare numbers and/or strings and return a value.   Function Description COMPARE Returns 0 if the two input strings are identical. Otherwise, returns the position of the first character that does not match. DATATYPE Returns a string indicating the input string is a particular […]

Question keyboard key
REXX

REXX – Arithmetic Functions

The following built-in Rexx Arithmetic Functions evaluate numbers from the argument and return a particular value.   Function Description ABS Returns the absolute value of the input number. DIGITS Returns the current setting of NUMERIC DIGITS. FORM Returns the current setting of NUMERIC FORM. FUZZ Returns the current setting of NUMERIC […]