When exporting to XLSX format via the Export menu in SAS Enterprise Guide 8.5, the first string might be missing.
When you export a data set that contains strings such as a_x1234@ by selecting the .xlsx file extension from the Export menu, the data appears as _x1234@ when opened in Excel.
If the trailing special character matches one of the following patterns, the leading ‘A’ is omitted:
“A_x1234@”, “A_x1234?”, “A_x1234\”, “A_x1234*” “A_x1234=”
“A_x1234<”, “A_x1234>”, “A_x1234}”, “A_x1234[”, “A_x1234+”
If the trailing special character matches one of the following patterns, the leading “A” is not omitted.
“A_x1234_”, “A_x1234-”“A_x1234a”
Add the ExportXlsxPreserveSpaces option within the <configuration> tags in the SEGuide.exe.config file.
This file is located in the root installation directory of SAS Enterprise Guide (the default path is C:\Program Files\SASHome\SASEnterpriseGuide\8\).
Before you make any changes, create a backup of the SEGuide.exe.config file:
<appSettings>
<add key=" ExportXlsxPreserveSpaces" value="true "/>
</appSettings>
Send to Microsoft Excel and save the file manually: Share > Send to Microsoft Excel
Export to CSV.