Hour 12Tables

Tables are the COBOL version of an array. Tables have a variety of uses, from subtotal tracking to data validation. Table handling is an integral part of many COBOL programs. In this hour, you learn the different aspects of table handling, including

• The definition of a table

• Populating a table in Working-Storage

• Table searches

• Handling variable-length tables

Defining a Table

Image

A table is a set of different data items with identical definitions. They are defined so that the individual items in the set can be accessed via a reference, known as a subscript. Tables are also known as arrays. When a table is defined, the number ...

Get Sams Teach Yourself COBOL in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.