Different results using OCCURS with different compilers
问题 I'm attempting to output the following row using DISPLAY and am getting the correct result in Micro Focus COBOL in Visual Studio and the Tutorialspoint COBOL compiler, but something strange when running it on a z/OS Mainframe using IBM's Enterprise COBOL: 01 W05-OUTPUT-ROW. 05 W05-OFFICE-NAME PIC X(13). 05 W05-BENEFIT-ROW OCCURS 5 TIMES. 10 PIC X(2) VALUE SPACES. 10 W05-B-TOTAL PIC ZZ,ZZ9.99 VALUE ZEROS. 05 PIC X(2) VALUE SPACES. 05 W05-OFFICE-TOTAL PIC ZZ,ZZ9.99 VALUE ZEROS. It appears in