BookmarkSubscribeRSS Feed
MetteSF
Calcite | Level 5

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

4 REPLIES 4
RW9
Diamond | Level 26 RW9
Diamond | Level 26

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.

Doc_Duke
Rhodochrosite | Level 12

Ditto RW9's comments.  I've had this happen more than once with .csv files that were exported from Excel.  Inspect the input file.

ballardw
Super User

@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.

sas-innovate-2024.png

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.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 1309 views
  • 0 likes
  • 5 in conversation