We love that you can use OCCURS in the screen section and we use it quite frequently.
Now - for the first time - we need a radio-button that gets its options from a table and we don’t know how to get the value.
This is what we would like to use:
78 T01-MAX VALUE 10.
78 T01-GROUP VALUE 03.
01 T01-RESULT PIC 9(02).
01 T01-TABLE.
02 T01-RECORD OCCURS T01-MAX
INDEXED BY T01.
03 T01-VI PIC 9(01).
03 T01-ID PIC 9(05).
03 T01-TITLE PIC X(40).
03 T01-VALUE PIC 9(02).
01 SCRPP10-BILD.
02 LABEL LINE 10 VISIBLE 0.
02 OCCURS T01-MAX.
03 RADIO-BUTTON LINE + 1
COL 50
VISIBLE T01-VI
ID T01-ID
TITLE T01-TITLE
GROUP T01-GROUP
GROUP-VALUE T01-VALUE
VALUE T01-RESULT.But this gives us a “Mismatching OCCURS structure” error - probably because T01-RESULT is not part of the table.
We tried a lot of solutions but none of these worked.
Does anyone use radio-buttons with OCCURS ?



