Understanding DATA Step Processing |
Debugging a DATA
Step![]() ![]() |
When you read raw data with the DATA step, it's important to check the SAS log to verify that your data was read correctly. Remember what these messages tell you: |
SAS Log
WARNING: The data set PERM.UPDATE may be incomplete. When this step was stopped there were 0 observations and 5 variables. |
When there are no observations written to the data set, you should check to see whether your DATA step was completely executed. Most likely, there is a syntax error or another error being caught at the beginning of the execution phase. |
SAS Log
NOTE: Invalid data for IDnum in line 7 15-19. |
An invalid data message indicates that the program executed, but the data is not acceptable. Typically, the message indicates that a variable's type has been incorrectly identified in the INPUT statement or the raw data file contains some data value(s) that are invalid. |
![]() ![]() ![]() ![]() ![]() ![]() |
|
![]() |
![]() |
Copyright © 2002 SAS Institute Inc.,
Cary, NC, USA. All rights reserved.