Dynamic items cannot be set following a table that may vary in size whilst the ODOSLIDE directive is in effect, as the moving of allocated memory for the dynamic item that may occur depending on table size is not permitted. In the following example, you must either move or remove the dynamic item, or remove the ODOSLIDE directive.
$SET ODOSLIDE 1 dpd1 PIC 9(9) COMP. 1 grp1. 03 a1 OCCURS 1 TO 10 DEPENDING ON dpd1 PIC X. 03 d1 PIC X DYNAMIC.