jjtww 发表于 2013-5-15 13:29
这个没看懂啊?能解释下吗?就是do while 循环里的不明白
You can use the Data Step Debugger to figure out the logic detail in the data step by modify the code as follows.
复制代码
you can type the commands at the command line,such as 'step' to execute the statement and move to next line. the code 'examine _all_' to list all the variable and their values in in the DEBUGGER LOG window.
The error might be there is two records in the same row in you stock raw data.
You can modify it at the specified line that showing up in the SAS error log by using the text editor ,such like notepad editor or ultraeidt.
SAS Output:
NOTE: 从数据集 WORK.TIME. 读取了 45 个观测
ERROR: Key not found.
ERROR: Key not found.
ERROR: Key not found.
ERROR: Key not found.
ERROR: Key not found.
ERROR: Key not found.
ERROR: Key not found.
ERROR: Key not found.
ERROR: Key not found.
ERROR: Key not found.
ERROR: Key not found.
ERROR: Key not found.
ERROR: Key not found.
ERROR: Key not found.
ERROR: Key not found.
ERROR: Key not found.
ERROR: Key not found.
ERROR: Key not found.
ERROR: Key not found.