SAS Component Language Dictionary |
Category: | Control Flow |
Syntax | |
Details | |
Example | |
See Also |
Syntax |
CALL GOTO(entry<,action<,frame>>); |
is the name of the entry to branch to. The entry can be any of the SAS/AF display entry types (FRAME, PROGRAM, MENU, CBT, or HELP). The entry argument can be in the following forms:
specifies how the execution stack is to be handled and where control transfers to when the specified entry ends:
is the number of the CBT frame if you are branching to a CBT entry.
Details |
The GOTO routine branches immediately to a CBT, HELP, MENU, FRAME, or PROGRAM entry and transfers control to it. Statements that appear after GOTO are not executed, because control is transferred to the entry that is specified in the GOTO routine.
GOTO, which always starts a new stream, cannot be used in FSEDIT or FSVIEW programs.
Example |
Pass control to MYEND.PROGRAM, and end the SAS/AF session if the user issues the END command. Assume there is no parent entry specified.
if _status_='E' then call goto('myend.program','C');
See Also |
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.