Skip to main content

Problem:

Release: 3.1   You must pass a pointer to the data item to COBOL and establish addressibility within the linkage section.

Resolution:

Linkage section.

01  some-string    pic x(256).

procedure division.

    call "some_func" using by value int-param

                              returning address of some-string

    end-call

Then in your C program return a pointer to the array

Attachments:

DB2_description.JPG

Old KB# 6858