Page 1 of 1

ENTRY SENTENCE

PostPosted: Tue May 05, 2009 1:22 pm
by MIGUELCOB
Does a COBOL program called dynamically through an ENTRY point, maintain its status between different calls in the same run unit?
I mean that if in a run unit the working variables are kept between different calls.

Regards.
Miguel.

Re: ENTRY SENTENCE

PostPosted: Tue May 05, 2009 1:33 pm
by dick scherrer
Hello Miguel and welcome to the forum,

Does a COBOL program called dynamically through an ENTRY point, maintain its status between different calls
Sometimes. . .

Many organizations have a standard that all of the data areas to be used by a called moduled are defined and initialized in the calling module. When the called module makes changes to these data areas, the changes are present back in the calling code and are available for subsequent calls. Keep in mind that when a caller invoked a called module, the data area in the "using" are only in the caller. The called module merely references the caller's fields.