libname xl_lib xlsx "&outpath/storm.xlsx" ;
data xl_lib.storm_final;
set pg1.storm_final;
drop Lat Lon Basin OceanCode;
run;
*libname xl_lib clear;
Question: As per the demo in the course, this code should not generate any output data displayed in SAS studio as we are writing the same to excel workbook. clearing the libref at the end of the program is to remove reference to the library. why am I able to see output data if I don't clear libref and if I clear the libref, output data is not generated?
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.
Early bird rate extended! Save $200 when you sign up by March 31.
Follow along as SAS technical trainer Dominique Weatherspoon expertly answers all your questions about SAS Libraries.
Find more tutorials on the SAS Users YouTube channel.