Skip to main content

Problem:

Net Express with .NET

Calling a user-created file handler in .NET gives error message when compiling:

" Failed to find system program "aUserfh" "

The CALLFH(aUserfh) directive is set and the file handler is in the project directory.

The call to the file handler works if the DLL for the file handler is referenced in the project. However, what if there is the need to compile the source from a script with the directives in a .DIR file?

Resolution:

Make sure the ILREF"<your assembly name>" directive is also set or included in the .DIR file. This does the equivalent of adding a reference in the Visual Studio IDE.

Old KB# 1266

#COBOL
#netexpress
#ServerExpress
#RMCOBOL
#AcuCobol