Chapter Contents |
Previous |
Next |
Null |
Valid: | Anywhere |
Category: | Action |
Type: | Executable |
Syntax | |
Without Arguments | |
Details | |
Examples | |
See Also |
Syntax |
; |
or |
;;;; |
The Null statement signals the end of the data lines that occur in your program.
Details |
The primary use of the Null statement is to signal the end of data lines that follow a DATALINES or CARDS statement. In this case, the Null statement functions as a step boundary. When your data lines contain semicolons, use the DATALINES4 or CARDS4 statement and a Null statement of four semicolons.
Although the Null statement performs no action, it is an executable statement. Therefore, a label can precede the Null statement, or you can use it in conditional processing.
Examples |
data test; input score1 score2 score3; datalines; 55 135 177 44 132 169 ;
data test2; input code1 $ code2 $ code3 $; datalines4; 55;39;1 135;32;4 177;27;3 78;29;1 149;22;4 179;37;3 ;;;;
data _null_; set dsn; file print header=header; put 'report text'; ...more statements... return; header:; run;
See Also |
Statements:
|
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.