DTW_CONCAT

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

Purpose

Concatenates two strings.

Format

@DTW_CONCAT(stringIn1, stringIn2, stringOut)

@DTW_rCONCAT(stringIn1, stringIn2)

Parameters

Table 78. DTW_CONCAT Parameters
Data Type Parameter Use Description
string stringIn1 IN A variable or literal string.
string stringIn2 IN A variable or literal string.
string stringOut OUT A variable that contains the string 'stringIn1stringIn2', where string1 is concatenated with string2.

Return Codes

Table 79. DTW_CONCAT 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_CONCAT("This", " is a test.", result)

Example 2:

@DTW_CONCAT(string1, "1-2-3", result)

Example 3:

@DTW_rCONCAT("This", " is a test.")


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