Skip to main content
Question

External File Handler

  • November 20, 2025
  • 2 replies
  • 19 views

Neil Hayes
Forum|alt.badge.img+1

In native COBOL I make heavy use of the compile directive:

CALLFH"ABCDEF"

Where “ABCDEF” is  ABCDEF.GNT.

Moving to COBOL .NET  and .NET Core, “ABCDEF” becomes a DLL but should it be a class or program?
What is the benefit of either, if that’s an option?

Neil

2 replies

Chris Glazier
Forum|alt.badge.img+2

Hi Neil,

You should be able to recompile your current custom file handler program as a COBOL program within a Class Library project under .NET or .NET Core as the call interface to the file handler is the same. I tested this here and it worked fine on both platforms.


Gael Wilson
Forum|alt.badge.img
  • Rocketeer
  • November 21, 2025

Neil,

It will continue to be a program.

In  managed code a program is actually compiled as a class anyway.

Gael