How do you replace detent cable on 1972 Chevy c20 truck?

The transmission oil pan needs to be dropped, then you can disconnect the detent cable, remove the small bolt holding the sheath to the outside of the transmission then slide it out of the transmission. Be sure the o-ring is in good condition or just replace it when installing the cable back in.