![]() Chapter Contents |
![]() Previous |
![]() Next |
| ERROR |
| Valid: | in a DATA step |
| Category: | Action |
| Type: | Executable |
| Syntax | |
| Without Arguments | |
| Arguments | |
| Details | |
| Examples | |
| See Also |
Syntax |
| ERROR <message>; |
| Without Arguments |
| Arguments |
| Tip: | Message can include character literals (enclosed in quotation marks), variable names, formats, and pointer controls. |
| Details |
Using ERROR is equivalent to using these statements in combination:
| Examples |
file file-specification; if type='teen' & age > 19 then error 'type and age don"t match ' age=;
file file-specification; if type='teen' & age > 19 then do; file log; put 'type and age don"t match ' age=; _error_=1; file file-specification; end;
| See Also |
Statement:
|
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.