Adds export functionality to the SAS creation script. Closes #2