Hi,
please I have this construction:
- from main program I called program p1
- in program p1 is this:
- ON 1 do something ELSE do something
- then quit to main program
- then again enter to p1 program
- in p1 is only ELSE part done
- is there any way how to reset ON status?
thanks
#cobolnetexpressThe ON statement is an OSVS COBOL extension.
In the documentation under the ON statement is the following:
The ON counter of a called program can only be reset by the canceling of that program; execution of the EXIT PROGRAM statement and subsequent CALL of the program without intervening CANCEL has no effect upon the implicit ON counter value.)