There should be a code set for it, you’ll need a scanner that can read chassis codes. Any shop with a good ($) scanner could pull them, it’d be worth dropping by one to see if they would do it for you real quick.
GM publishes diagnostic procedures for each code in the shop manual, so that would be the best way to resolve it. It could be something as simple as a damaged wire.
PDFs of these manuals are available for download at the link below. Year 1999 manuals are in post #77:
Over the years I have collected a bunch of GM service literature. Links to PDF Scans of service and STG manuals and a links to the Parts manuals. You'll need the FREE Adobe Acrobat reader to open these files. Get it directly from Adobe here {http://get.adobe.com/reader/} If you're not...
www.gmt400.com
Somewhere, and I cannot find it now, I remember hearing something about transfer case module fault codes throwing the transmission shift points off or into limp mode.
As a shotgun attempt, the transfer case control module might be on the fritz. It’s under the dash: