请问这段程序那里错了?
SET TALK OFF CLOSE TABLES ALL
SET DELETED ON
USE f:\评估\VFP\保单信息20121231.dbf IN 0 ALIAS 保单信息20121231
SELECT 保单信息20121231
SCAN
DO CASE
CASE 产品代码="00110100" OR 产品代码="00112500"
REPLACE 有效保额 WITH MAX(基本保额*(1+保单年度*0.05),年保费*MIN(保单年度,交费期限))
CASE INLIST(产品代码,"00126600","00321500","00231000")
REPLACE 有效保额 WITH 基本保额
OTHERWISE
SELECT 保单信息20121231
ENDCASE
ENDSCAN
REPLACE ALL 风险保额2 WITH MAX(有效保额,基本保额)-未到期责任 FOR !EMPTY(有效保额)
SET DELETED OFF
CLOSE TABLES ALL
SET TALK ON
一跑就出现nesting error
看了下帮助,scan 也有endscan,do case也有endcase
不知道哪里错了?