Understanding DATA Step Processing |
Debugging a DATA
Step![]() ![]() |
Let's insert the semicolon at the end of the INFILE statement but leave
the incorrect spelling of the keyword.
data perm.update; unfile invent; input Item $ 1-13 IDnum $ 15-19 InStock 21-22 BackOrd 24-25; Total=instock+backord; run; As you can see from the log messages, the DATA step still does not execute. |
SAS Log
07 data perm.update; 08 unfile invent; ------ 180 ERROR 180-322: Statement is not valid or it is used out of proper order. 09 input Item $ 1-13 IDnum $ 15-19 10 InStock 21-22 BackOrd 24-25; 11 Total=instock+backord; 12 run; ERROR: No CARDS or INFILE statement. NOTE: The SAS System stopped processing this step because of errors. WARNING: The data set PERM.UPDATE may be incomplete. When this step was stopped there were 0 observations and 5 variables. |
Because INFILE is misspelled, the statement in the DATA step that identifies the raw data is missing. Note, however, that the correct number of variables was defined in the descriptor portion of the data set. |
![]() ![]() ![]() ![]() ![]() ![]() |
|
![]() |
![]() |
Copyright © 2002 SAS Institute Inc.,
Cary, NC, USA. All rights reserved.