Skip to main content

[archive] Calling Cobol From C# In Linux

  • June 5, 2008
  • 4 replies
  • 0 views

[Migrated content. Thread originally posted on 04 June 2008]

Hello:

We need your help.

We have a C# application on Windows calling a Cobol program on another Windows 2003 server. For this call we use acuGTObjects.dll and it works perfect.

Now we have port the C# application to Linux (with Mono) and try to call the Cobol program in the same Red Hat Server.

We have tried unsuccesfully acuGTObjects.dll and wrunnet.dll but the result in both cases is not finding the Cobol program and not making the error file.

What component should we use to make the call?
Is there an special way to make the call?
Is there something special with configuration and error files?

I have a more detailed document explaining what we had done.

Thanks in Advance.......

4 replies

[Migrated content. Thread originally posted on 04 June 2008]

Hello:

We need your help.

We have a C# application on Windows calling a Cobol program on another Windows 2003 server. For this call we use acuGTObjects.dll and it works perfect.

Now we have port the C# application to Linux (with Mono) and try to call the Cobol program in the same Red Hat Server.

We have tried unsuccesfully acuGTObjects.dll and wrunnet.dll but the result in both cases is not finding the Cobol program and not making the error file.

What component should we use to make the call?
Is there an special way to make the call?
Is there something special with configuration and error files?

I have a more detailed document explaining what we had done.

Thanks in Advance.......
I really don't know mono, but I would be surprised if mono would be able to use a dot net dll just like that. At any rate, behind the acuGTObjects.dll, the Marshal COM object has to be installed in order to communicate with the runtime which also have to be installed. While mono may be binary compatible with a dot net dll. I know for sure that you will not be able to install the COM object on linux.

I am sorry, but this will not work.

Your best bet here is to try the java bridge.

[Migrated content. Thread originally posted on 04 June 2008]

Hello:

We need your help.

We have a C# application on Windows calling a Cobol program on another Windows 2003 server. For this call we use acuGTObjects.dll and it works perfect.

Now we have port the C# application to Linux (with Mono) and try to call the Cobol program in the same Red Hat Server.

We have tried unsuccesfully acuGTObjects.dll and wrunnet.dll but the result in both cases is not finding the Cobol program and not making the error file.

What component should we use to make the call?
Is there an special way to make the call?
Is there something special with configuration and error files?

I have a more detailed document explaining what we had done.

Thanks in Advance.......
Thank you for your reply,

Actually in Mono for Linux we are using some .NET DLL with no problems (DLL for log file construction in example).

I think we will be making some test with .NET and then try the Java bridge.

I will post any comment, I will appreciate your help and comments.....

Best regards....

[Migrated content. Thread originally posted on 04 June 2008]

Hello:

We need your help.

We have a C# application on Windows calling a Cobol program on another Windows 2003 server. For this call we use acuGTObjects.dll and it works perfect.

Now we have port the C# application to Linux (with Mono) and try to call the Cobol program in the same Red Hat Server.

We have tried unsuccesfully acuGTObjects.dll and wrunnet.dll but the result in both cases is not finding the Cobol program and not making the error file.

What component should we use to make the call?
Is there an special way to make the call?
Is there something special with configuration and error files?

I have a more detailed document explaining what we had done.

Thanks in Advance.......
Hello,

For the Cobol call from C# we are porting the sub.h and acusetjmp.h. Do you have a new version for this resources for Linux? I mean an administrable code version of these libraries?

Thanks in advance.

Hector

[Migrated content. Thread originally posted on 04 June 2008]

Hello:

We need your help.

We have a C# application on Windows calling a Cobol program on another Windows 2003 server. For this call we use acuGTObjects.dll and it works perfect.

Now we have port the C# application to Linux (with Mono) and try to call the Cobol program in the same Red Hat Server.

We have tried unsuccesfully acuGTObjects.dll and wrunnet.dll but the result in both cases is not finding the Cobol program and not making the error file.

What component should we use to make the call?
Is there an special way to make the call?
Is there something special with configuration and error files?

I have a more detailed document explaining what we had done.

Thanks in Advance.......
You are attempting to do something that is not supported (and never attempted or tested). The Windows runtime is ported and built for Windows, and a Linux runtime (runcbl) is ported and built based on the glibc and chip set for the Linux distro. If you use Visual Studio you should be able to open the AcuGT solution file and see the libraries we distribute. We do not distribute any libraries or file beyond what we install.