Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling parameter not received

Status
Not open for further replies.

fventosa

IS-IT--Management
Oct 6, 2001
4
ES
Hi everybody,

I'm trying to write two programs in MF Cobol (Windows version) in the 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.

Tha program call runs dynamically ok, but the called program receives only the 2 first parameters.

I've been looking into the documentation for compiler directives that deal 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)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top