my check engine lite comes on and goes off after a while stays off for 50 miles on 1998 Saab 900

just got the car and the engine lite was off drove it for about 50 miles and it came on and stays on for a while goes off again and comes back on what should i do

Asked by for the 1998 Saab 900