Using the .RTN command
You can branch to as many screen spaces as you want in ASF and TSF by using the .FGO or .SGO command to chain screens together.
The .RTN immediate command is required at the bottom of the last screen space in an ASF or TSF sequence to terminate the sequence, return to the original calling screen or branch to the next, and re-enable exception analysis for further automatic calls. Use definition mode (/DEF ON) when creating screen spaces that contain the .RTN command.
While the .RTN command is normally used to return to the calling
screen space, it also accepts an argument, and can force the return
to a screen space that is not the calling screen. For example, to
return to a screen called SCREEN2
, enter the .RTN
immediate command followed by SCREEN2
.
You can delay the return for up to 35 cycles by placing the number
of cycles to be delayed in the label field of .RTN (1 to 9 for numbers
1 to 9 and A to Z for numbers 10 to 35). The following command causes
a return to SCREEN2
after 6 cycles.
6.RTN SCREEN2
On each cycle, OMEGAMON replaces the number in the label field
with the next lower number. When the count reaches zero, OMEGAMON
fetches SCREEN2
.