sas,app: better performance for closingsum, more recodes
sas,app: cosmetic changes, duplicate selection