The code below has worked for a couple of months. Today it suddenly makes weird lineshifts in the output. (and it is not because the file is that big)
proc export data=fdtdwh.t_AUM_DETAILS
outfile='\\s64q600\Eisam\COGNOS\DATA\CSV data files\t__AUM_DETAILSxxx.CSV' dbms=csv
replace;
run;
I attached a picture of the output.. I have never experienced this before, neither have my colleagues.. Please help quickly
I have tried to rename the output and delete the existing csvfile - nothing worked..
I am using SAS EG ver7.1
Inspect the csv with a proper text editor (notepad++ or similar). Use hex display if normal text does not immediately give you a clue.
I would say your source data contains special characters. We had this with one of our database providers, entry people were putting returns and tabs in the data entry fields and the database was not stripping them out. So export ran fine for a while, then someone entered a return character and suddenly export broke.
Look for '0A'x, '0D'x, for instances of line feed carriage returns for instance.
Ditto RW9's comments. I've had this happen more than once with .csv files that were exported from Excel. Inspect the input file.
@Doc_Duke wrote:
Ditto RW9's comments. I've had this happen more than once with .csv files that were exported from Excel. Inspect the input file.
I would bet a small stack of quarters that your data originated as Excel or other spreadsheet and has cells someone used "ctrl enter" to create multi-line data in text.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.