On 3/18/2013 2:29 PM, Victor Gil wrote:
We have a need to call a COBOL subroutine by attaching it as a subtask, so
the  call is done through an Assembler stub that issues the Attach, Waits on the
termination ECB and Detaches the subtask.

The subroutine gets the parms, does what it's job and returns back with an
RCfield which is a part of the passed structure.

However, the caller *does not* see this RC!

Is the LE making a local copy of the parms? And if yes - how to workaround this 
issue?

TIA,
-Victor-


Sounds like you possiblye are not passing and receiving the structure
in the same way.

If your COBOL program is moving the return code value into
the RC field in your structure, but on return you do not
see the value: are you passing by reference or by content?
are you receiving by reference or by content?

On the other hand, if your COBOL program is just setting
the RETURN-CODE special register, that value is not passed
back in your passed structure automatically.

So it would help to see some code: how your Assembler routine
sets up the passed parms and how it examines these after the
CALL; then how your COBOL routine sees the passed parms (show
us the linkage section, the using statement, and the point in
the code where you think RC is getting set.



--

Kind regards,

-Steve Comstock
The Trainer's Friend, Inc.

303-355-2752
http://www.trainersfriend.com

* To get a good Return on your Investment, first make an investment!
  + Training your people is an excellent investment

* Try our tool for calculating your Return On Investment
    for training dollars at
  http://www.trainersfriend.com/ROI/roi.html

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to