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.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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