check engine light comes on then no pedal on 2004 Dodge Ram 2500

if i shift the automatic trans to drive 2 an back the pedal comes back

check engine light on means something wrong with engine,

you can get a diagnostic tool check you dodge,

this tool can do dodge, have a look at it.