Skip to main content

Problem:

Calling program is compiled in Mainframe Express (MFE)

Called module from Mainframe is compiled and bound on the mainframe using ATTACH(TSO) directive.

Stub for called module is generated in MFE.

When run, the calling program calls the module on the mainframe using Mainframe Call Generator (MCG), and the module fails with an SQLCODE -927.

This problem occurrs with both Mainframe Access (MFA) v2.0 and MFA v3.0

Resolution:

Compilation of programs in MFE is unchanged.

Creation of the STUB in MFE is unchanged.

Compilation and bind on the Mainframe, is unchanged as long as the ATTACH(TSO) directive is set.

The problem is that the DSNHLI module being run on the mainframe is the IBM version, which is normally found in the SDSNLOAD library for the DB2 installation.

The MCG process should be using the Micro Focus version of DSNHLI, which would be found in the LOADLIB for the MFA installation.

The solution is to make sure the IBM SDSNLOAD library is lower in the STEPLIB concatenation list of the MFA started task on the mainframe, than the MFA installation LOADLIB library.

This will force the Micro Focus version to be used.

The Micro Focus version of DSNHLI accepts attach(TSO) programs, IBM's does not via either a CAF or RRSAF connection.

Old KB# 6606

#EnterpriseDeveloper
#MFDS