谢谢楼上各位
nYear=2016
nMonth=1
dDate=DATE(nYear,nMonth,1)
do case
dDate=28
repl all bjrs with (L1+L2+L3+L4******+L28)/dDate
dDate=29
repl all bjrs with (L1+L2+L3+L4******+L28+L29)/dDate
dDate=30
repl all bjrs with (L1+L2+L3+L4******+L28+L29+L30)/dDate
dDate=31
repl all bjrs with (L1+L2+L3+L4******+L28+L29+30+L31)/dDate
ENDDO
有没有比上述代码更清晰简捷 谢谢
nYear=2016
nMonth=1
dDate=DATE(nYear,nMonth,1)
do case
dDate=28
repl all bjrs with (L1+L2+L3+L4******+L28)/dDate
dDate=29
repl all bjrs with (L1+L2+L3+L4******+L28+L29)/dDate
dDate=30
repl all bjrs with (L1+L2+L3+L4******+L28+L29+L30)/dDate
dDate=31
repl all bjrs with (L1+L2+L3+L4******+L28+L29+30+L31)/dDate
ENDDO
有没有比上述代码更清晰简捷 谢谢