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.


Null statement

From sasCommunity
Jump to: navigation, search

The Null statement consists of only a semicolon (;) and generally conveys no additional meanings to SAS.

Syntax

;

Usage

A semicolon (;) should be used to end each and every SAS statement. Additional semicolons (;) can normally be used between any two SAS statements anywhere in SAS code without ill effects. However, there are two situations where a semicolon should be used with care.

After a DATALINES statement, a semicolon should be used to end a group of datalines. If the data contains one or more semicolons then a DATALINES4 statement needs to be used instead.

After a DATALINES4 statement, four semicolons in a row (;;;;), and starting on a new line, are needed to end a group of datalines that might contain semicolons.

Other than that, additional semicolons between statements are treated as null statements that convey no additional meanings to SAS.