The #RTN macro terminates a routine and returns control to the calling routine. #RTN loads the return address from the TCE stack into register 14, adjusts register 13 to point to the top of the currently available position in the stack, and issues a BR 14 instruction. A sample of the code generated by #RTN is shown:
SH R13,=H'4' L R13,0(,R13) L R14,0(,R13) BR R14
#RTN must be the last instruction executed in a user-written edit module that uses CA IDMS calling conventions.
Syntax
►►─── label ───────────────────────────────────────────────────────►◄
Specification of a label is optional. The following sample instruction establishes the label RTRN1 for a #RTN macro:
RTRN1 #RTN
Copyright © 2013 CA.
All rights reserved.
|
|