AIX | HP-UX | Linux | OS/2 | OS/390 | OS/400 | PTX | SUN | Win NT |
X | X | X | X | X | X | X | X | X |
Purpose
Reverses a string so that the last character is first, second to last is second, until the entire string is reversed.
Format
@DTW_REVERSE(stringIn, stringOut)
@DTW_rREVERSE(stringIn)
Parameters
Table 96. DTW_REVERSE Parameters
Data Type | Parameter | Use | Description |
---|---|---|---|
string | stringIn | IN | A variable or literal string to reverse. |
string | stringOut | OUT | A variable that contains the reversed form of stringIn. |
Return Codes
Table 97. DTW_REVERSE Return Codes
Return Code | Explanation |
---|---|
-1001 | The server could not process a Net.Data request to allocate memory. |
1003 | An incorrect number of parameters were passed on a function call. |
1005 | A parameter passed on a function call, required to be a string variable, was of a different variable type. |
1006 | A literal string was passed on a function call for a parameter which was required to be an output parameter. |
Examples
Example 1:
@DTW_REVERSE("This is it.", result)
Example 2:
@DTW_rREVERSE(string1)