如何作出成绩分析,自动每科名次入库?这个是算出来一科的,有更简单的方法吗?
程序代码:
set talk off set deleted on clear all clea sele 1 use g1 sele 2 use jf go top do while .not.eof() bj0=bjs n=recno() sele 1 count all for bjs=bj0 .and. ywnjmc<=10 to yw10 count all for bjs=bj0 .and. ywnjmc<=50 .and. ywnjmc>10 to yw50 count all for bjs=bj0 .and. ywnjmc<=100 .and. ywnjmc>50 to yw100 count all for bjs=bj0 .and. ywnjmc<=200 .and. ywnjmc>100 to yw200 count all for bjs=bj0 .and. ywnjmc<=600 .and. ywnjmc>200 to yw600 count all for bjs=bj0 .and. ywnjmc<=1000 .and. ywnjmc>600 to yw1000 count all for bjs=bj0 .and. ywnjmc<=1600 .and. ywnjmc>1000 to yw1600 count all for bjs=bj0 .and. ywnjmc<=2400 .and. ywnjmc>1600 to yw2400 sele 2 go n repl yw1 with yw10, yw2 with yw50, yw3 with yw100,yw4 with yw200, yw5 with yw600, yw6 with yw1000,yw7 with yw1600, yw8 with yw2400 skip enddo close all set talk on set deleted off
这个是算出来一科的,有更简单的方法吗?