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
SAS Super FREQ

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

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

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