REXX – Miscellaneous Functions

The following built-in Rexx Miscellaneous Functions.

 

Function Description
ADDRESS Returns the name of the environment to which commands are currently being sent.
ARG Returns an argument string or information about the argument strings to a program or internal routine.
BITAND Returns a string composed of the two input strings logically ANDed together, bit by bit.
BITOR Returns a string composed of the two input strings logically ORed together, bit by bit.
BITXOR Returns a string composed of the two input strings eXclusive ORed together, bit by bit.
CONDITION Returns the condition information, such as name and status, associated with the current trapped condition.
DATE Returns the date in the default format (dd mon yyyy) or in one of various optional formats.
ERRORTEXT Returns the error message associated with the specified error number.
EXTERNALS This function is provided only by TSO. Returns the number of elements in the terminal input buffer. In TSO/E, this function always returns a 0.
LINESIZE This function is provided only by TSO. Returns the current terminal line width minus 1.
QUEUED Returns the number of lines remaining in the external data queue at the time when the function is invoked.
SOURCELINE Returns either the line number of the last line in the source file or the source line specified by a number.
TIME Returns the local time in the default 24-hour clock format (hh:mm:ss) or in one of various optional formats.
TRACE Returns the trace actions currently in effect.
USERID Returns the TSO/E user ID, if the REXX exec is running in the TSO/E address space.
VALUE Returns the value of a specified symbol and optionally assigns it a new value.
XRANGE Returns a string of all 1-byte codes (in ascending order) between and including specified starting and ending values.

Be the first to comment

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.