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.


Difference between revisions of "Semicolon"

From sasCommunity
Jump to: navigation, search
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
[[Category:Statements]]
+
The '''Semicolon''' (''';''') is the most dreaded feature of the [[SAS]] syntax. It actually ends a [[statement]] (making it a [[step boundary]]) and by itself is a [[null statement|''null'' statement]].
The Semicolon (;) is the most dreaded feature of the SAS syntax. It actually ends a statement.
+
  
 
The result of the fear of the semicolon is that SAS programmers quite often forget to code the semicolon.
 
The result of the fear of the semicolon is that SAS programmers quite often forget to code the semicolon.
  
 +
Folklore: SAS really stands for '''"semicolon - always semicolon"'''
  
Folk lore: SAS really stands for "semicolon - always semicolon"
+
== Considerations ==
 +
* Many statements, like the [[:Category:INPUT Statement|INPUT statement]], may span multiple lines. A semicolon should only be appended to the very end of the statement, not the end of each line.
 +
 
 +
== Further reading ==
 +
* [[The Missing Semicolon]]
 +
* [[Revenge of the Semi-Colon People]]
 +
 
 +
== See also ==
 +
* [[Punctuation in SAS Programming]]
 +
* [[That Mysterious Colon (:)]]
 +
 
 +
[[Category:Statements]]
 +
[[Category:Language Elements]]

Latest revision as of 12:10, 24 August 2017

The Semicolon (;) is the most dreaded feature of the SAS syntax. It actually ends a statement (making it a step boundary) and by itself is a null statement.

The result of the fear of the semicolon is that SAS programmers quite often forget to code the semicolon.

Folklore: SAS really stands for "semicolon - always semicolon"

Considerations

  • Many statements, like the INPUT statement, may span multiple lines. A semicolon should only be appended to the very end of the statement, not the end of each line.

Further reading

See also