A discard exit routine is a program that skips writing records with certain characteristics during the migration phase.