CREATE OR REPLACE TRIGGER testt1 BEFORE INSERT ON Student for each row
BEGIN 
  IF (:NEW.major = 'CSE') THEN :NEW.major := 'CS'; END IF;
END;
.
run;

