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;
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.