Here's the scenario: Using NetExpress 5.0, I have a program that I'll call A. It is compiled as a .DLL. It is basically a driver program that runs a number of other COBOL programs that have been compiled as GNTs.
We want to kick off this process from a .Net service. This all works fine until one of the GNTs runs the function X"AF". (For those of you living in the present, X"AF" enables enhanced Accept and Display, which is fine if you are using a native COBOL user interface.) Then the whole process crashes.
Now, the obvious solution is to get rid of the X"AF" calls because the program isn't really using the user interface, they're just "batch" processing programs. However, the process that program A runs could potentially call any of over 1000 different programs and we'd like to implement this process next week. Also, my service shares these GNTs with a process that does run with the Native COBOL interface.
Is there a way to tell COBOL to "ignore" that X"AF" call? Perhaps some kind of compiler option that I can invoke in the .DLL or environment variable that I can set on the server that will basically cause X"AF" to "do nothing," but not crash my service?
The obvious goal here is to be able to resolve this by changing one program or configuration item, rather than having to change over 1000 programs.
Thanks for the help!
Mike
#COBOL
#.net
#.netdllcobol