Go to a label with option to return.
||An integer specifying a label. For further details on labels, refer to the GO command.
PROC command redirects execution to the specified label location. You can then use RSUB
to return to the line following the GOSUB
The following example shows GOSUB
jumping to label 10, then RSUB
returning to the X
(exit) command following the GOSUB
MV %1 "A"
IF %1 = "A" GOSUB 10
XEnd of PROC
ODon't Display this
10 ODisplay this
© 1997-2019 InterSystems Corporation, Cambridge, MA