Skip to main content

Problem:

Execution error :

cob32: Failed to locate an appropriate executable for tool 'cob32'

*** Error exit code 1

Stop.

Resolution:

Reinstall the cobol product in clean directories.

The error message is being issued from the triggers (i.e. the 'cob' utility which

attempts to execute 'cob32' or 'cob64'). It would imply an issue with file

permissions or a corrupt file.

Please execute the following commands:

ls -l $COBDIR/bin/cob $COBDIR/bin/cob??

cobfile $COBDIR/bin/cob $COBDIR/bin/cob??

sum -r $COBDIR/bin/cob $COBDIR/bin/cob??

cobmode will indicate which the default working mode to check in the output of the above commands. Ex cob32 or cob64

Make make sure $COBDIR/bin is the first directory path in the PATH environment variable.

ls -l $COBDIR/bin/cob $COBDIR/bin/cob??

For eample you may find the following

xrwxrwx   for cob32

On a running system the permissions should be -r-xr-xr-x  

   

The sum -r output and the cobfile output may be used to determine if the system is corrupt, if you have a running system to compare the output of the commands.

Old KB# 2291