Skip to main content

This article explains what to do if an error occurs after installing Application Server and executing a program.

Problem:

After installing the Application Server product, the following error occurred when a program was executed:

cobrun32: cobol version number invalid

Resolution:

This error may be occurring because the environment variables have changed or were not set up correctly in the first place. It may also be the result of mixing two different product environments where different COBOL versions co-exist.

Check to ensure the following environment variables are set correctly:

COBDIR=Server Express/Application Server base directory

PATH=$COBDIR/bin:$PATH

LD_LIBRARY_PATH=$COBDIR/lib:$LD_LIBRARY_PATH

Note: On AIX, this will be LIBPATH, on HP, SHLIB_PATH

Ensure that no other scripts or 3rd party (client) applications changes the environment variables which were already set in the beginning of the session.

Old KB# 14137