sas run cancel statement

How to exit from a SAS data step or a Program?

There are a number of statements, options, functions, and programming alternatives that are well suited to controlling how and when all or a portion of a program can be stopped conditionally. Sometimes we want to control the flow of the individual data steps of the program. This may include the termination of a step or even the SAS job itself. There are several exit strategies depending on the objective.

Receive the latest articles in your inbox

Insert your email signup form below

🤞 Don’t miss these tips!

We don’t spam! Read more about our privacy policy.