Restore the model database:
Load your backup of model, if you keep a backup.
If you do not have a backup:
Run the installmodel script:
On most platforms:
cd $SYBASE/ASE-12_5/scripts isql -Usa -Ppassword -Sserver_name < installmodel
On Windows:
cd $SYBASE/ASE-12_5/scripts isql -Usa -Ppassword -Sserver_name < instmodl
Redo any changes you made to model.