BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
RandyW
Calcite | Level 5

We have a column titled "Unique_Identifier" that is typically 3 characters long and contains numbers and letters. The column is a TEXT column in order to accommodate the number/letter combinations. The problem we are facing is when we export "as a step in the project", the Excel file is having trouble with the values that contain the letter E (ex: '0E4'). It thinks that value is an exponential number. Further more, when uploading to Power BI, our example of '0E4' is shown as _x0030_E4. We get the odd formatting if we use the file directly from the SAS export, but the weird part is if we save the excel file, then upload to Power BI, '0E4' correctly shows as '0E4'.

Any thoughts are appreciated. Thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

Excel is causing the issue here, not SAS - but changing your method of Export should help. If using ODS EXCEL you can use tagattr to force the column to be displayed as text. 

 


@RandyW wrote:

We have a column titled "Unique_Identifier" that is typically 3 characters long and contains numbers and letters. The column is a TEXT column in order to accommodate the number/letter combinations. The problem we are facing is when we export "as a step in the project", the Excel file is having trouble with the values that contain the letter E (ex: '0E4'). It thinks that value is an exponential number. Further more, when uploading to Power BI, our example of '0E4' is shown as _x0030_E4. We get the odd formatting if we use the file directly from the SAS export, but the weird part is if we save the excel file, then upload to Power BI, '0E4' correctly shows as '0E4'.

Any thoughts are appreciated. Thanks in advance!


 

View solution in original post

5 REPLIES 5
Reeza
Super User

Excel is causing the issue here, not SAS - but changing your method of Export should help. If using ODS EXCEL you can use tagattr to force the column to be displayed as text. 

 


@RandyW wrote:

We have a column titled "Unique_Identifier" that is typically 3 characters long and contains numbers and letters. The column is a TEXT column in order to accommodate the number/letter combinations. The problem we are facing is when we export "as a step in the project", the Excel file is having trouble with the values that contain the letter E (ex: '0E4'). It thinks that value is an exponential number. Further more, when uploading to Power BI, our example of '0E4' is shown as _x0030_E4. We get the odd formatting if we use the file directly from the SAS export, but the weird part is if we save the excel file, then upload to Power BI, '0E4' correctly shows as '0E4'.

Any thoughts are appreciated. Thanks in advance!


 

SuryaKiran
Meteorite | Level 14

How are you exporting the data into Excel from SAS. 

Thanks,
Suryakiran
RandyW
Calcite | Level 5

Exporting as a step in the project

Reeza
Super User
I think that actually creates an HTML file that SAS can open, but I may be mistaken. Try explicitly exporting it as PROC EXPORT or using ODS EXCEL instead.
RandyW
Calcite | Level 5

Thanks for all the quick responses. For some reason changing the output file type to .CSV (instead of .XLSX) works for us.

We will try the ODS EXCEL suggestion also.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 2099 views
  • 0 likes
  • 3 in conversation