Turn on SAS log mode and SAS listing mode when appropriate.