Created On:  04 February 2013

Problem:

When compiling, the following error message is received:

DB0009 MF DB2 Connect program reported error condition '5050'

Resolution:

This occured when an end user had the environment variables DB2INSTANCE,  DB2LIB, DB2_HOME,  IBM_DB_DIR, IBM_DB_INCLUDE, IBM_DB_LIB 

all indicating one installation of DB2, in other words one DB2_HOME, but the entry for LIBPATH indicated a different installation of DB2. 

The solution was to correct the environment variable LIBPATH to agree with the intended DB2_HOME.

Incident #2611491