IBM Books

Reference

DTW_WORDS


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

Purpose

Returns the number of words in a string.

Format

@DTW_WORDS(stringIn, stringOut)

@DTW_rWORDS(stringIn)

Parameters

Table 116. DTW_WORDS Parameters

Data Type Parameter Use Description
string stringIn IN A variable or literal string.
string stringOut OUT A variable that contains the number of words in stringIn.

Return Codes

Table 117. DTW_WORDS Return Codes

Return Code Explanation
-1001 The server could not process a Net.Data request to allocate memory.
1003 The number of parameters passed on a function call either exceeded the maximum number allowed, or was less than the minimum number required by the function.
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_WORDS("Now is the time", result)

Example 2:

@DTW_rWORDS(" ")


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