Hi,
Can you please help me to extract the data in this .SAS file into Excel?
This file is a SAS program, not a SAS data set. It contains only SAS code (text). Can you provide details about what you intend to accomplish?
I would like to get the details of the codes
If you want to read a text file, like the one you posted, use a DATA step.
data code ;
infile 'clean data.sas' truncover ;
row+1;
input code $char200.;
run;
If you want to write data into Excel you can use PROC EXPORT, or the XLSX libname engine or the ODS EXCEL engine.
Why do you want to make SAS code unusable by storing it in a spreadsheet file?
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.
Lock in the best rate now before the price increases on April 1.
Ready to level-up your skills? Choose your own adventure.