Re: inter subprogram in initial state, but only sometimes



Richard<riplin@xxxxxxxxxxxx> 12/23/05 8:57 PM >>>
>> I want the sub-program to sometimes be entered
>> in it's last used state and sometimes in it's initial state. But only
the
>> sub-program itself needs to know when it wants to do one and when it
>> wants to do the other.
>
>How hard would it be for the called program to re-initialise the
>working-storage items, close files etc and generally return itself to
>initial conditions _without_ being cancelled ?
>
>What does cancel achieve that a few moves and closes would not ?

Well, if you have a lot of VALUE clauses in your working storage
definitions, then there would but quite a lot of moves. It would be nice
just to let the COBOL runtime do it.

Frank


---
Frank Swarbrick
Senior Developer/Analyst - Mainframe Applications
FirstBank Data Corporation - Lakewood, CO USA
.



Relevant Pages

  • Re: inter subprogram in initial state, but only sometimes
    ... > But is there a way for the CALLED program to basically cancel itself once ... I want the sub-program to sometimes be ... Of course it could pass something back to the caller ... > Frank Swarbrick ...
    (comp.lang.cobol)
  • inter subprogram in initial state, but only sometimes
    ... But is there a way for the CALLED program to basically cancel itself once it ... I want the sub-program to sometimes be entered ... Of course it could pass something back to the caller ... Frank Swarbrick ...
    (comp.lang.cobol)
  • Re: inter subprogram in initial state, but only sometimes
    ... > sub-program itself needs to know when it wants to do one and when it ... working-storage items, close files etc and generally return itself to ... What does cancel achieve that a few moves and closes would not? ... Prev by Date: ...
    (comp.lang.cobol)
  • Re: CANCEL Mis-behaving
    ... Frank Swarbrick wrote: ... As soon as the cancel statement is processed, Program A exits for no ... What is your reasoning behind performing the CANCEL? ... COBOL that used an assembler routine to do dynamic calls ...
    (comp.lang.cobol)
  • Re: CANCEL Mis-behaving
    ... As soon as the cancel statement is processed, Program A exits for no ... What is your reasoning behind performing the CANCEL? ... COBOL that used an assembler routine to do dynamic calls ... Frank Swarbrick ...
    (comp.lang.cobol)