Created On:  21 October 2011


When a data structure name is on the same line as a COPY statement, Modernization Workbench throws Error 8040 - Incorrect Data Declaration.  An example would be a statement like this:

01  DATA-FIELDS                       COPY MYDATA.


To resolve this, you will need to change a workspace option.

To do so, open Workspace Options, then select the Verification tab, then select the Legacy Dialects subtab, then click on Cobol under "Source Type", and then check the box to use "COPY statements as in COBOL-68".  Hit "OK" and re-verify the file giving the error, which should now disappear.
Incident #2523222