Outdated Sybase ASE code, but it manufactures cleanly