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 screen spaces together.
The .RTN immediate command is required at the end of the last screen space in an ASF or TSF sequence in order to end the sequence, return to the original calling panel or branch to the next, and re-enable exception analysis for further automatic calls. You can use the definition mode (the /DEF ON command) when creating screen spaces that contain the .RTN command.
Normally, you use the .RTN command without a screen space name to return to the calling panel. The .RTN command also accepts an argument which forces the return to a screen space that is not the calling panel. For example, to return to a panel called SCREEN2, enter the .RTN command followed by SCREEN2.
6.RTN SCREEN2
On each cycle, OMEGAMON for CICS (3270) replaces the number in the label field with the next lower number. When the count reaches zero, it fetches SCREEN2.