98 dakota 5.2 magnum cutting out

If it dies after its warmed up and doesn't throw a code its usually the camshaft position sensor. The cam position sensor is under the distributor cap.