DTW_LENGTH

AIX HP-UX Linux OS/2 OS/390 OS/400 PTX SUN Win NT
X X X X X X X X X

Purpose

Returns the length of a string.

Format

@DTW_LENGTH(stringIn, length)

@DTW_rLENGTH(stringIn)

Parameters

Table 88. DTW_LENGTH Parameters
Data Type Parameter Use Description
string stringIn IN A variable or literal string.
integer length OUT A symbol containing the number of characters in stringIn.

Return Codes

Table 89. DTW_LENGTH 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_LENGTH("abcdefgh", result)

Example 2:

@DTW_rLENGTH("")


[ Top of Page | Previous Page | Next Page | Index ]