2980 FOR J=1 TO NG