Fixed max/min in SAS and CAS