Microsoft KB Archive/21234

From BetaArchive Wiki

SAME RECORD AREA Clause: “Invalid Object Module”

PSS ID Number: Q21234 Article last modified on 11-16-1992

1.10 MS-DOS

Summary: If a file is specified in a SAME RECORD AREA clause but is otherwise never referenced in the COBOL program, (i.e., OPENed, CLOSEd, etc.), an “Invalid Object Module” error message is generated at compilation. The following is a workaround: 1. Eliminate the filename from the SAME RECORD AREA clause. 2. Use the file in the program. This is a known problem with Version 1.10. This problem was corrected in Version 1.12.

Copyright Microsoft Corporation 1992.