In this paper, a method of variable changes and numerical integral is employed to obtain the analytical solutions with shock layer structures for the DNLS equation by considering Ohm's resistance' Based on the explict solutions, the effect of dispersion on the amplitude and magnetic flelds B
y, B
z is discussed. The results show that the dispersion has an obvious control over the shock width: the smaller the dispersion, the larger the shock width and slower the B
y B
z decay. When the dispersion is small enough, B
y, and B
z turn into pure solitons. In case of no dispersion, the solitary solution with a modulating factor is also obtained.