Chapter Contents

Previous

Next
JUMP

JUMP



Restarts execution of a suspended program

Category: Controlling Program Execution
Alias: J


Syntax
Arguments
Details
Examples
See Also

Syntax

JUMP line-number | label

Arguments

line-number
indicates the number of a program line at which to restart the suspended program.

label
is a statement label. Execution resumes at the statement following the label.


Details

The JUMP command moves program execution to the specified location without executing intervening statements. After executing JUMP, you must restart execution with GO or STEP. You can jump to any executable statement in the DATA step.

CAUTION:
Do not use the JUMP command to jump to a statement inside a DO loop or to a label that is the target of a LINK-RETURN group. In such cases you bypass the controls set up at the beginning of the loop or in the LINK statement, and unexpected results can appear.   [cautionend]
JUMP is useful in two situations:


Examples


See Also

Commands:

GO
STEP


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.