In the following example, you must either remove the depending on phrase from the group item, or remove the dynamic length phrase from the subordinate name1.
01 staff-records. 03 data1 occurs 1 to 20 times depending on count1. 05 id1 pic x value all "X". 05 name1 pic x dynamic length.