Re: Cobol linkage question - Prob B working storage values.



Program A calls Prog B. On the first call to Prog B and before the
goback to Prog A certain working-storage fields are valued. Do these
fields retain their value so the next time Prog A calls Prog B under
the same execution of Prog A the working-storage field has the value?

I think it does, because once Prog A calls Prog B the first time the
addressability is set up.

Well, I think it depends on if 'CANCEL PROGB' was called or not. ... and
whether or not the IS INITIAL clause is specified in the PROGRAM-ID
paragraph of PROGB and whether or not there are any VALUE IS clauses in
WORKING-STORAGE of PROGB...

But instead of THINKING I would be KNOWING ... if only I had RTFM.

MCM




.



Relevant Pages

  • Re: Cobol linkage question - Prob B working storage values.
    ... Program A calls Prog B. On the first call to Prog B and before the ... goback to Prog A certain working-storage fields are valued. ... fields retain their value so the next time Prog A calls Prog B under ... unless the sub program is canceled after the first call or the "INITIAL" is set. ...
    (comp.lang.cobol)
  • Cobol linkage question - Prob B working storage values.
    ... I lurk here every once in awhile but today I have a ... Program A calls Prog B. On the first call to Prog B and before the ... goback to Prog A certain working-storage fields are valued. ... fields retain their value so the next time Prog A calls Prog B under ...
    (comp.lang.cobol)