IBM Books

Reference

DTW_TB_ROWS


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 rows in a Net.Data table.

Format

@DTW_TB_ROWS(table, rows)

@DTW_TB_rROWS(table)

Parameters

Table 152. DTW_TB_ROWS Parameters

Data Type Parameter Use Description
table table IN The macro table variable for which the current number of rows is returned.
integer rows OUT A variable that contains the current number of rows in table.

Return Codes

Table 153. DTW_TB_ROWS Return Codes

Return Code Explanation
-1001 The server could not process a Net.Data request to allocate memory.
1001 An input parameter contained a NULL value.
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.
1004 A parameter passed on a function call, required to be a Net.Data macro table variable, was of a different variable type.
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: Retrieves the current number of rows in the table and assigns the value to rows

%DEFINE myTable = %TABLE
%DEFINE rows = ""
...
@FillTable(myTable)
...
@DTW_TB_ROWS(myTable, rows)


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