Add sas version into SAS calculations

Issue #657