A linear [n,k,d]q code C is called NMDS if d(C)=n–k and d(C⊥)=k. In this paper, the classification of the [n,3,n−k]q NMDS codes is given for q=7,8,9. It has been found using the correspondence between [n,3,n−k]q NMDS codes and (n,3)-arcs of PG(2,q).