98 dodge ram 1500 318 engine stalls when coming to stop or slow turn on 1998 Dodge Ram 1500

Code reads p740 problem comes and almost goes away then back, whats my first step

Asked by for the 1998 Dodge Ram 1500
Have the transmission lock up solenoid tested for function. Possible staying locked up during stops.
Give an example of a internal problem
Look up TSB's for this code.