Well you and I will have a lot in common to talk about. I also have a 98 sonoma 2.2. I have 140,000 on mine and i have had a lot of things replaced on mine the last couple of years. Your problem sounds a lot like the one i was having with my check engine light. I started out the light would come on at random and stay on for different lengths of time and go out. I had it scanned but nothing. The mechanic told me that the computer was loosing its memory. I thought what the heck it is running good so i won't worry about it. Then it started going dead while iddleing at stop light, Not Good. Long story short i replaced the computer and no more problems. I tried having it flashed but it wouldn't work. Advance auto best price.