sas: fixes issues with input data