Please try the FILENAME statement option TERMSTR.
filename sample 'sample.csv' termstr=CRLF;
proc import datafile=sample out=csv replace dbms=csv;
run;
>some variables have line breaks
This is insufficient information.
Are these LF or CRLF ? How do the breaks show in Notepad++ or in MS Word?
Having LF in .csv created from Excels is unfortunately not uncommon. Luckily your .csv will most likely use CRLF as actual end-of-line indicator.
If so then using termstr=CRLF in the Infile statement should be the silver bullet for you.
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 save with the early bird rate—just $795!
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.