As the first step in the decommissioning of sasCommunity.org the site has been converted to read-only mode.


Here are some tips for How to share your SAS knowledge with your professional network.


RETURN statement

From sasCommunity
Jump to: navigation, search

The RETURN statement ends a DATA Step iteration.

Syntax

RETURN ;

Usage

A RETURN statement is implicitly executed at the end of each DATA step. However, if a RETURN statement is encountered before the end of a DATA step, the code after that statement will only be executed if the RETURN statement is executed conditionally, such as after an IF statement or else the subsequent code is labelled so it can be accessed via a GO TO statement or an exception event label, such as end of file, etc.