//
Why you want to do manually , I think it must be some dynamic way.
Can I get sample data which I can import in my SAS ?
I don't know how to fix it simply.
you can import your excel file by using PROC IMPORT procedure.
just need to update filepath in %let path statement.
%let path=filepath;
proc import datafile="&path.\data.xlsx"
out=want dbms=excel replace;
run;
CSV stands for Comma Separated Vector.
It can be imported by SAS using either CSV engine or by DLM=",".
See proc import documentation:
http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a000332605.htm
If you need help for reading a csv file, you should post that.
Use the dsd option in the infile statement to correctly read empty (missing) columns.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.