Created On: 21 October 2011
Problem:
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.
01 DATA-FIELDS COPY MYDATA.
Resolution:
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.
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
Old KB# 34996
#Copy
#Error8040
#EnterpriseAnalyzer
#SupportTip
#IncorrectDataDeclaration