Skip to main content

Hi,

I have some trouble when i try to "debug" an application in Visual COBOL. 

I looked in the documentation but I havn't found a solution. When I run my application, I give it a buffer of several thousand character, i run it on java like this :

Reference ref = new Reference();

ref.bytes = "000A003 [....] 030303030".getBytes();

MyProgram program = new MyProgram();

program.MyProgram(ref);

But now, i want to debug my Cobol using Visual Cobol, but i don't know how to pass this buffer to my program.

How can i do it ?

Thanks,

Regards


#buffer
#VisualCOBOL
#debug

Hi,

I have some trouble when i try to "debug" an application in Visual COBOL. 

I looked in the documentation but I havn't found a solution. When I run my application, I give it a buffer of several thousand character, i run it on java like this :

Reference ref = new Reference();

ref.bytes = "000A003 [....] 030303030".getBytes();

MyProgram program = new MyProgram();

program.MyProgram(ref);

But now, i want to debug my Cobol using Visual Cobol, but i don't know how to pass this buffer to my program.

How can i do it ?

Thanks,

Regards


#buffer
#VisualCOBOL
#debug

Hi,

One way would be to debug your java class and step into the COBOL program. You can either step or put a breakpoint in the COBOL program.

Regards,

George


Hi,

I have some trouble when i try to "debug" an application in Visual COBOL. 

I looked in the documentation but I havn't found a solution. When I run my application, I give it a buffer of several thousand character, i run it on java like this :

Reference ref = new Reference();

ref.bytes = "000A003 [....] 030303030".getBytes();

MyProgram program = new MyProgram();

program.MyProgram(ref);

But now, i want to debug my Cobol using Visual Cobol, but i don't know how to pass this buffer to my program.

How can i do it ?

Thanks,

Regards


#buffer
#VisualCOBOL
#debug

The Reference class is not documented because it is an internal runtime class and using it would

not give your person reusing the COBOL program a nice interface

The recommend approach is to use a class that sits in front of the COBOL program that helps expose a

better interface to Java with better types that a opaque "by reference" parameter.

I would recommend you have a read of the following sections..

Tutorial - Creating a JSP web application

documentation.microfocus.com/.../index.jsp

Or jump to the bit that wrappers a COBOL program as a class..

 documentation.microfocus.com/.../GUID-B2CD9117-26FD-44CA-93DC-2AB9789EFD98.html

Also.. this section might help you too...

Exposing COBOL Linkage Data as Managed Types

documentation.microfocus.com/.../index.jsp