Hello SAS-users. I have to import a lot of .csv files to SAS dataset. The csv delimiter is Tab ('09'x). The files were imported from a Business Objects query. Some records are wrapped to two strings in csv files (by Alt+Enter in a description character field). How can i import these files correctly with infile statement? I use SAS EG 4.3 under Windows server. I've tried option termstr="crlf" but the output dataset contains no observations in this case. The log is below: 14 data test; 15 infile "\\sasabm01.region.vtb.ru\UOLib\PLI_FX\Input\2012\Loans_cnt\MSK_20120201_20120215.csv" 16 firstobs=2 dlm='09'x dsd truncover encoding='utf-8' termstr="crlf"; 17 informat dt ymddttm19. debet $20. credit $20. sum_rur commax17. txt $100.; 18 input dt -- txt; 19 run; NOTE: The infile "\\sasabm01.region.vtb.ru\UOLib\PLI_FX\Input\2012\Loans_cnt\MSK_20120201_20120215.csv" is: Filename=\\sasabm01.region.vtb.ru\UOLib\PLI_FX\Input\2012\Loans_cnt\MSK_20120201_20120215.csv, RECFM=V,LRECL=1536,File Size (bytes)=1434841, Last Modified=26Mar2012:11:37:42, Create Time=26Mar2012:12:06:55 NOTE: 0 records were read from the infile "\\sasabm01.region.vtb.ru\UOLib\PLI_FX\Input\2012\Loans_cnt\MSK_20120201_20120215.csv". NOTE: The data set WORK.TEST has 0 observations and 5 variables. NOTE: DATA statement used (Total process time): real time 0.02 seconds user cpu time 0.03 seconds system cpu time 0.00 seconds Memory 22971k OS Memory 33096k Timestamp 26.03.2012 14:58:41 I've also tried termstr=crlf (without quotes) but this cause an error: ERROR: Invalid string. FATAL: Unrecoverable I/O error detected in the execution of the DATA step program. Aborted during the EXECUTION phase.
... View more