What they could have done is turn Pam into some kind of freak show where every time she dreams, she isn't really dreaming but she actually is exploring a porthole to another parallel earth where most everything was the same, yet some things weren't, such as Bobby, who was still alive in one of the portholes. That way they could spin off a completely different 'Dallas' show with dramatically different episodes from that point forward which would allow Lorimar to double their money.
Of course the new split would have to offer radical changes to keep the audience interested such as instead of living in Dallas, the split show would be taking place in down town Cleveland, and instead of oil, they would be mining salt, and JR could actually be a cyborg robot with deep crime power that no one ever thought possible and with connections in Chicago where the mob takes control over the entire planet and starts gutting all the riches from all the other nations to build Cleveland into an amazing empire which eventually turns into it's own country that leads into terrorizing the entire solar system once they gain the scientific technology and power to navigate the earth to anywhere at any time with the power to launch bombs large enough to blow up other planets and stars.
Pam of course would turn into the clever control freak that would foil many of JR's best designed evil plans and she would win many times to keep the show raging on for years to come! Yes!! I can see this working!