Problem:
Error compiling program being migrated from Object COBOL.
cob32: error opening: /tmp/cobxyz/a.out
Error in compiling and linking file xyz.cob
Compile command:
cob -C IBMCOMP -xv -Q -o xyz.exe xyz.cob
Resolution:
The -Q flag passes option to the system linker (See the Server Express User's Guide > 10. Descriptions of cob Flags). In this particular case it was not followed by a valid linker option.
The "-o" is supposed to be passed to cob causing it to take the next parameter as the ouput name, in this case xyz.exe. This affected the intermediate workfile a.out created by the cob/lilnk process.
Removing the -Q resolved the problem.