I have a relational database with a one-to-many table. When reading it in COBOL, I believe it's necessary to read the record key from the main table and the related records from the secondary table; I believe a read should be performed from the main table record key, and the related records from the secondary table would be stored in an "occurs" of that record.
The code FD :
FD ARCHIVO-NUEVO.
01 REG-NUEVO-FISICO.
05 Fis-RecNumber PIC 9(6).
05 Fis-Nombre PIC X(30).
05 Fis-Tabla-Pagos.
10 Fis-Nuevo PIC 9(8) OCCURS 100 TIMES.
Is correct???
Thanks
