I ran this below code in SAS 9.4 on Linux
data test;
input a $ b $;
datalines;
q s
t r
;
run;
data test;
set test;
if b='r' then b='';
run;
proc export data=test dbms=xlsx outfile='/data/com/test1.xlsx' replace;
run;
returns an xlsx with Non Printable Blank values. This is made sure with =ISBLANK function on the excel. The =ISBLANK of column 'b' is false for both observations. Whereas it should not be False for 2nd observation.
Please is there any way to correct this proc export dbms=xlsx option. I am not using pcfiles, as SAS 9.4 export to Linux does not need that but xlsx engine will be taking care of it.
Thank you very much for your help!
Arul
Or assign an actual space: ' ' instead of ''
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!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.