1.try to use work area .(ie) loop it into wa . (avoid with header line)
2.avoid select statement inside loop (Note : avoid using join table ,instead use for all entries)
3.Modify table by transporting particular field .
some simple steps to reduce the execution time .