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.
(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;
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).
(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;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.
Ready to level-up your skills? Choose your own adventure.