VC for VS 2017 patch 10 on Windows 10, managed COBOL.
When the I-O-CONTROL paragraph contains two (2) SAME RECORD AREA clauses:
        SAME RECORD AREA FOR FILE1-1, FILE1-2, FILE1-3.
        SAME RECORD AREA FOR FILE2-1, FILE2-2, FILE2-3.
and
OPEN INPUT FILE1-1, FILE2-1 OUTPUT FILE1-2, FILE1-3, FILE2-2, FILE2-3.
and
        READ FILE1-1 NEXT RECORD.
        READ FILE2-1 NEXT RECORD.
then the FD record areas for FILE1-2 and FILE1-3 have the same data as FILE1-1 and the FD record areas for FILE2-2 and FILE2-3 have the same data as FILE2-1. This is the expected behavior.
HOWEVER,
When the I-O-CONTROL paragraph contains THREE (3) SAME RECORD AREA clauses:
        SAME RECORD AREA FOR FILE1-1, FILE1-2, FILE1-3.
        SAME RECORD AREA FOR FILE2-1, FILE2-2, FILE2-3.
        SAME RECORD AREA FOR FILE3-1, FILE3-2, FILE3-3.
and
        OPEN INPUT FILE1-1, FILE2-1, FILE3-1
                OUTPUT FILE1-2, FILE1-3, FILE2-2, FILE2-3, FILE3-2, FILE3-3.
and
        READ FILE1-1 NEXT RECORD.
        READ FILE2-1 NEXT RECORD.
        READ FILE3-1 NEXT RECORD.
then the FD record areas for ALL FILEx-2 and FILEx-3 files have ALL SPACES. The "re-mapping" of the logical record areas doesn't appear to have happened as it does when there are only one or two SAME RECORD AREA clauses. This is the UN-expected behavior.
Has anyone run across this before?