Problem:
Compiling a program with mulitple entry points gave the error:
002-R Attempted to redefine symbol
when the program was compiled.
Resolution:
This was caused by the following scenario:-
aaaaa.cbl had a program-id of bbbbb
aaaaa.cbl also had a an ENTRY POINT called aaaaa.
The problem here was generated because the compiler was attempting to create duplicate entry point called aaaaa. Here the program id did not match the source name.
The solution was to rename the source file to bbbbb.cbl. The program then compiled cleanly to obj code.