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?
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!
Ready to level-up your skills? Choose your own adventure.