The system variable RESULT is what you're looking for. SAVE "DAT:DATA",DATA IF RESULT!=1 THEN GCLS BEEP 1 PRINT "HOW DARE YOU NOT SAVE!" STOP ENDIF