Understanding DATA Step Processing |
Execution
Phase |
You can see that the DATA step works like a loop, repetitively executing
statements to read data values and create observations one by one. Each
"loop" (or cycle of execution) is called an iteration.
At the beginning of the second iteration, the value of _N_
is set to 2 and _ERROR_ is still 0. Notice
that the input pointer rests in column 1 of the second record.
|
Raw Data File Invent
V---+----10---+----20---+-
Bird Feeder LG088 3 20
6 Glass Mugs SB082 6 12
Glass Tray BQ049 12 6
Padded Hangrs MN256 15 20
Jewelry Box AJ498 23 0
Red Apron AQ072 9 12
Crystal Vase AQ672 27 0
Picnic Basket LS930 21 0
Brass Clock AN910 2 10
SAS Data Set Perm.Update
Item | IDnum | InStock | BackOrd | Total |
Bird Feeder | LG088 | 3 | 20 | 23 |
Copyright © 2002 SAS Institute Inc.,
Cary, NC, USA. All rights reserved.