Understanding DATA Step Processing |
Debugging a DATA
Step![]() ![]() |
Line 07 in the log displays the raw data record. Notice that the second field displays the values for IDnum , which are obviously character values. |
SAS Log
NOTE: Invalid data for IDnum in line 7 15-19. RULE: ----+----1----+----2----+----3----+----4-- 07 Crystal Vase AQ672 27 0 Item=Crystal Vase IDnum=. InStock=27 BackOrd=0 Total=27 _ERROR_=1 _N_=7 NOTE: Invalid data for IDnum in line 8 15-19. 08 Picnic Basket LS930 21 0 Item=Picnic Basket IDnum=. InStock=21 BackOrd=0 Total=21 _ERROR_=1 _N_=8 NOTE: Invalid data for IDnum in line 9 15-19. 09 Brass Clock AN910 2 10 Item=Brass Clock IDnum=. InStock=2 BackOrd=10 Total=12 _ERROR_=1 _N_=9 NOTE: 9 records were read from the infile INVENT. NOTE: The data set PERM.UPDATE has 9 observations and 5 variables. |
The lines following line 07 display the values stored in the program data vector. Here, the values for IDnum are missing, although the other values have been correctly assigned to their respective variables. Notice that _ERROR_ has a value of 1, indicating that an error has occurred. |
SAS Log
NOTE: Invalid data for IDnum in line 7 15-19. RULE: ----+----1----+----2----+----3----+----4-- 07 Crystal Vase AQ672 27 0 Item=Crystal Vase IDnum=. InStock=27 BackOrd=0 Total=27 _ERROR_=1 _N_=7 NOTE: Invalid data for IDnum in line 8 15-19. 08 Picnic Basket LS930 21 0 Item=Picnic Basket IDnum=. InStock=21 BackOrd=0 Total=21 _ERROR_=1 _N_=8 NOTE: Invalid data for IDnum in line 9 15-19. 09 Brass Clock AN910 2 10 Item=Brass Clock IDnum=. InStock=2 BackOrd=10 Total=12 _ERROR_=1 _N_=9 NOTE: 9 records were read from the infile INVENT. NOTE: The data set PERM.UPDATE has 9 observations and 5 variables. |
![]() ![]() ![]() ![]() ![]() ![]() |
|
![]() |
![]() |
Copyright © 2002 SAS Institute Inc.,
Cary, NC, USA. All rights reserved.