!set tcnt=!recordcnt wimshome/log/classes/$wims_class/tool/.toolindex
!reset ts_list tt_list ti_list tde_list tdw_list
!for i=1 to $tcnt
  !set t__=!record $i of wimshome/log/classes/$wims_class/tool/.toolindex
  !distribute lines $t__ into s_,t_,ti_,de_,o_,w_
  !if $o_>0
    !set ts_list=!append line $s_ to $ts_list
    !set tt_list=!append line $t_ to $tt_list
    !set ti_list=!append line $ti_ to $ti_list
    !set tde_list=!append line $de_ to $tde_list
    !set tdw_list=!append line $w_ to $tw_list
  !endif
!next i
!set tcnt=!linecnt $ts_list
