A RETURN of a procedure before its ON-EXIT section #679
Loading…
Reference in a new issue
No description provided.
Delete branch "rpg-main-return-onexit-20261031"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A RETURN of a procedure before its ON-EXIT section
In a main procedure with ON-EXIT, the dispatch to the ON-EXIT section (the
call of the section procedure and the return to the procedure end) shares
the statement number of a RETURN that ends the procedure body. The RETURN
has the form of a RETURN that ends its statement (
18 L; 18 L; 15 L 2afterthe exception bracket); the rest of the statement gets the procedure-end
rules, as after an ENDFOR (
rpg_return_end.zig). The end rules accept thatrest of the final statement (
rpg_init_layout.isFinal). A packed INZ valuestored into a static field of the module in the procedure initialization is
proved like that of an automatic field. EXPERIMENTS/loop-condition-owner-sql
and -static emit
return; on-exit; CLOSECURSOR(); end-proc;with no failure.Gates