BookmarkSubscribeRSS Feed
xxformat_com
Barite | Level 11

Hi,

ods excel allows us to create xlsx file metadata (title, keywords, status, category, author...).

Is there a way to import / extract this information from an xlsx file using SAS ?

Best Regards

1 REPLY 1
Cynthia_sas
Diamond | Level 26

Hi:
Don't you have the original file that created these document-level elements?

 

It will not be easy to do what you want. Assuming you used SAS to create the XLSX file in the first place, you need to read the CORE.XML file that is in the docProps folder of the XLSX archive (since an XLSX file is not one file, but is a collection of compressed files), as shown below:

where_document_properties.png

Once you get to the CORE.XML file, then you'll need to read/parse it with SAS.


Cynthia

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 1 reply
  • 964 views
  • 0 likes
  • 2 in conversation