01 my-data-item. 01 prog-data-item pic x.
you receive this message after prog-data-item because, although it is my-data-item that is in error, the error is detected only when the next item at the same level as the data item in error is encountered.
Resolution
Add the necessary PICTURE clause or elementary items to the level hierarchy.