Created On: 18 January 2013
Problem:
How do I get the compilers to support Cobol 68 style copy statements?
01 SOME-NAME COPY SOME Copy.
The first line of the copy book (01) is replaced by the SOMENAME value when the copy occurs.
$SET OLDCOPY – First line of program. (Directive)
They were getting the following errors when trying to use the OLDCOPY directive with ENTCOBOL dialect.
COBCH2043W OLDCOPY incompatible with flagging dialect:
C:\xxx\xxx\COBOL\CMN\A13B002R.CBL (1, 6)
COBCH0634S Feature not supported in selected dialect:
C:\xxx\xxx\COBOL\CMN\A13B002R.CBL,c:\lam\mpi\copy\cmn\TEPREC.CPY(2,9)
01 SOME-NAME COPY SOME Copy.
The first line of the copy book (01) is replaced by the SOMENAME value when the copy occurs.
$SET OLDCOPY – First line of program. (Directive)
They were getting the following errors when trying to use the OLDCOPY directive with ENTCOBOL dialect.
COBCH2043W OLDCOPY incompatible with flagging dialect:
C:\xxx\xxx\COBOL\CMN\A13B002R.CBL (1, 6)
COBCH0634S Feature not supported in selected dialect:
C:\xxx\xxx\COBOL\CMN\A13B002R.CBL,c:\lam\mpi\copy\cmn\TEPREC.CPY(2,9)
Resolution:
Make sure the following dialects are set:
Dialect:
non-mainframe
Additional dialects:
Dialect"MF"
OSVS
Dialect:
non-mainframe
Additional dialects:
Dialect"MF"
OSVS
Incident #2572427