Hi everybody,
I'm trying to write two programs in Microfocus Cobol (Windows version) to be run in OSVS batch and CICS environment. The Cobol version is Cobol II.
The first program calls dynamically a second one, which should receive 3 parameters passed by the caller.
WORKING_STORAGE SECTION.
01 data1.
01 data2
01 data3
...
PROCEDURE DIVISION.
...
CALL modulename USING data1, data2, data3.
These parameters are level 01 Working-Storage defined items in the calling program, and level 01 LINKAGE in the called one:
LINKAGE SECTION.
01 data1
01 data2
01 data3
PROCEDURE DIVISION USING data1, data2, data3.
The program call runs dynamically ok, but the called program receives the 2 first parameters.
I've been looking into the documentation for compiler directives thatdeal with that, but I've found nothing at all.
Has anybody faced such a problem? Any suggestion would be appreciated.
Thanks in advance,
Felix Ventosa
Barcelona (Spain)
I'm trying to write two programs in Microfocus Cobol (Windows version) to be run in OSVS batch and CICS environment. The Cobol version is Cobol II.
The first program calls dynamically a second one, which should receive 3 parameters passed by the caller.
WORKING_STORAGE SECTION.
01 data1.
01 data2
01 data3
...
PROCEDURE DIVISION.
...
CALL modulename USING data1, data2, data3.
These parameters are level 01 Working-Storage defined items in the calling program, and level 01 LINKAGE in the called one:
LINKAGE SECTION.
01 data1
01 data2
01 data3
PROCEDURE DIVISION USING data1, data2, data3.
The program call runs dynamically ok, but the called program receives the 2 first parameters.
I've been looking into the documentation for compiler directives thatdeal with that, but I've found nothing at all.
Has anybody faced such a problem? Any suggestion would be appreciated.
Thanks in advance,
Felix Ventosa
Barcelona (Spain)