22 May 2025

How to use an array in Cobol

In COBOL, the OCCURS clause can be used to define a table (array). In the example, a table WS-NUM-TABLE with 10 elements is created. Each element (NUM-ITEM) is of type PIC 9(4) and can store a number up to 9999.... [Read More]
Image: How to use an array in Cobol