Skip to main content
Question

COBOL .NET Call programs in a different folder

  • January 13, 2026
  • 1 reply
  • 14 views

Neil Hayes
Forum|alt.badge.img+1

This pertains to the use of external filehandlers, where my COBOL class is compiled with CALLFH"abcdef", which in tern needs to call fh/aaaaaa.dll which exists in the sub folder fh.

The COBOL has :

CALL “fh/aaaaaa” using ………

During animation I debug the class, debug abcdef, but when it gets to the CALL “fh/aaaaaa” it doesn’t raise an exception but doesn’t execute the code either.

I can see from procmon that the assembly was indeed loaded as well as the .pdb but just ignored almost as though it was looking for the programid but that didn’t match.

Is this not supported?
Is there an COBOL .NET  replacement for COBPATH ?

Neil

 

1 reply

Chris Glazier
Forum|alt.badge.img+3

Hi Neil,

Is the entry point of the program name you are calling the same name as the dll name?

If the assembly aaaaaa.dll is within the system PATH then it should be found with:

call “aaaaaa”

You could also set a procedure-pointer to load the .dll prior to the call:

01 pp procedure-pointer.

      set pp to entry “fh\aaaaaa.dll”

      call “aaaaaa”