ok
it's a 1997 1500??????? 4x4 350? 150k miles?
just guessing on edmunds with those numbers, average condition
in good shape it's worth $2000 on trade in or $2500 in private party.

I've found edmunds to be pretty accurate.

it's certainly not worth putting a $3000 transmission into.

run your own numbers, but that truck is 15 years old and it's not a classic.

sell it for parts/non-running and buy another one same year and mileage and you'd be further ahead.