IBM Books

Net.Data Reference Guide

TABLE Statement

Purpose

The TABLE statement is used to define a collection of related data. It contains an array of identical records, or rows, and an array of column names describing the fields in each row. A table statement can only be in a define statement or block.

Syntax

>>-%table--| upper limit |-------------------------------------><
 
upper limit
 
|--+------------------+----------------------------------------|
   +-(--+-number-+-)--+
        +-ALL----+
 

Parameters

%table

A keyword that specifies the definition of a collection of related data containing an array of identical records, or rows, and an array of column names describing the fields in each row.

upper limit

The number of rows that be contained in the table.

number

A string of digits from 0 to 9.

ALL

A keyword that allows for an unlimited number of rows in the table.

Context

Can be found in these contexts:

Restrictions

Can contain these elements:

Examples

%DEFINE myTable=%TABLE(30)


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