The point to which SAS
returns depends on the order in which statements are executed in the
DATA step.
The RETURN statement
is often used with the
-
-
HEADER= option in the FILE statement
-
When RETURN causes a
return to the beginning of the DATA step, an implicit OUTPUT statement
writes the current observation to any new data sets (unless the DATA
step contains an explicit OUTPUT statement, or REMOVE or REPLACE statements
with MODIFY statements). Every DATA step has an implied RETURN as
its last executable statement.