BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
shoin
Lapis Lazuli | Level 10

SAS 9.4 TS1M7 on WIN x64

ACCESS/PCFF is installed

 

Trying to proc import a XLSM file in SAS EG, the only way been able to do so is to set one if its column (due to variable nature of length/data) the column to 29k length and insert 19k worth of gibberish (call it some story) pad the column which is then imported then the gibberish is stripped off.

 

Do you guys know of a better way?

 

Sincerely,

 

S.

1 ACCEPTED SOLUTION

Accepted Solutions
shoin
Lapis Lazuli | Level 10

(Solved for me)

 

/* dbms=excel was used, where sas & MS office prod has same bitness */
/* col 1 had variable length entries                                                            */
proc import file="e:\data\mydata_xlsm_vl.xlsm" dbms=excel out=test_vl;
run;

View solution in original post

2 REPLIES 2
ballardw
Super User

My first approach would be get rid of the macro(s) in the file. SAS won't use them.

Possibly save the file/sheets as CSV (comma separated values) and read/import the CSV file(s).

shoin
Lapis Lazuli | Level 10

(Solved for me)

 

/* dbms=excel was used, where sas & MS office prod has same bitness */
/* col 1 had variable length entries                                                            */
proc import file="e:\data\mydata_xlsm_vl.xlsm" dbms=excel out=test_vl;
run;

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
  • 2 replies
  • 1000 views
  • 0 likes
  • 2 in conversation