Welcome to myCobol.ovh Monday, 29 September 2025, 08:23

ODO object
Category Syntax
Subject Cobol
In the example below, X is the object of the OCCURS DEPENDING ON clause.
WORKING-STORAGE SECTION
01 TABLE-1.
05 X PIC S9.
05 Y OCCURS 3 TIMES
DEPENDING ON X PIC X.
The value of the ODO object determines how many of the ODO subject appear in the table.
Submitted by remy
Created on Sunday, 07 November 2021, 02:48

Back to Glossary