* Starter Solenoid: This is the most common solenoid people ask about. On a 1997 Dodge Ram, the starter solenoid is typically located on the starter motor itself. The starter motor is usually bolted to the engine block, near the transmission bellhousing. It's a relatively large, cylindrical device with thick wires attached. The solenoid is an integral part of it, not a separate unit.
* Other Solenoids (e.g., fuel pump relay, transmission solenoids): These are smaller and located in various places depending on the system. The fuel pump relay might be in a fuse box (under the hood or inside the cab), while transmission solenoids are inside the transmission itself.
To find the specific solenoid you need, you'll need to be more specific about which system it's part of (e.g., "starter solenoid," "fuel pump relay solenoid," or a specific transmission solenoid). A repair manual for your specific 1997 Dodge Ram model and engine would provide exact locations and diagrams.