ENTRY SENTENCE



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

ENTRY SENTENCE

Postby MIGUELCOB » Tue May 05, 2009 1:22 pm

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.
MIGUELCOB
 
Posts: 1
Joined: Tue May 05, 2009 1:01 pm
Has thanked: 0 time
Been thanked: 0 time

Re: ENTRY SENTENCE

 

Re: ENTRY SENTENCE

Postby dick scherrer » Tue May 05, 2009 1:33 pm

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post