To be sure, you should:
* Consult your owner's manual: This is the best resource for the precise location in your particular vehicle.
* Look for a black box with numerous connectors: The PCM is usually a fairly large, rectangular electronic module.
* Check online forums: Search for "2002 Dodge Dakota PCM location" on forums dedicated to Dodge trucks. Pictures from other owners can be very helpful.
Keep in mind that accessing the PCM might require removing some interior panels. If you're not comfortable doing this yourself, take your Dakota to a qualified mechanic.