every programming language has some built-in functions that help the programmer do some routine tasks. rexx also has a lot of built in functions.
let’s look at all of these functions available in rexx.
| sr.no. | functions available in rexx |
|---|---|
| 1 |
address
this method returns the name of the environment in the which the rexx commands are currently running in. |
| 2 |
beep
this method produces a sound in the system at a particular frequency and duration. |
| 3 |
datatype
this method returns the value of ‘num’ if the input is a valid number else it will return the value of ‘char’. you can also specify if you want to compare the input value to a num or char value. in each case, the value returned will be either 1 or 0 depending on the result. |
| 4 |
date
this method returns the local date in the following format. |
| 5 |
digits
this method returns the current setting of numeric digits as defined in the current system. |
| 6 |
errortext
this method returns the rexx error message associated with error number ‘errorno’. please note that the error number needs to be a value from 0 to 99. this is useful in cases wherein your program returned an error code and you want to know what the error code means. |
| 7 |
form
this method returns the current setting of ‘numeric form’ which is used to do mathematic calculations on the system. |
| 8 |
time
this method returns the local time in the 24-hour clock format as shown in the following program. |
| 9 |
userid
this method returns the current user id logged into the system. |
| 10 |
xrange
this method returns the characters in the range specified by the start and end character. |
| 11 |
x2d
this method returns the decimal conversion of a hexstring value. |
| 12 |
x2c
this method returns the character conversion of a hexstring value. |