Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

RE: CALLing a sub-program - W-S values can be different second time round

$
0
0

The default behavior for the CALL statement is that the program you call will always be left in its last used state.

If you wish for the program to be in its first used state when you call it then you should either cancel the program prior to calling it again using the CANCEL statement or add the IS INITIAL clause to the program-id of the subprogram in which case it will always be initialized each time it is called.

Thanks..


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>