Page 2 of 2

Posted: Tue Mar 24, 2009 12:29 am
by sureshreddy2009
Hi
Enter the correct format in sequential file
as u said that all records are loaded but in logs it is saying that one record is rejected, this is because, at the end of file they entered one empty line , so all records are loaded into the target and one line is not loaded because of not finding any delimiter, this is purely the "final delimiter format mismatch" in sequential file
and for avoiding charater at the end of each line, set the record delimiter format

Posted: Tue Mar 24, 2009 5:17 am
by hemanthakumar
Hi,
Use the follwing command in Unix to remove control (^M) characters in Source file.

sed 's/'`echo "\015"`'//g' filename.

To remove the warning "Missing record delimiter "\n", saw EOF instead"
go to end of the last line of the source file give one Enter .It will remove the warning.

Posted: Tue Mar 24, 2009 2:15 pm
by prasad111
Try using dos2unix command after sftp'ing the file from script

Code: Select all

In Linux
$dos2unix <file_name> 
In some unix systems[I guess in AIX]
$dos2unix <file_name> file_name.tmp
mv file_name.tmp <file_name>

Re: Warning :Missing record delimiter "\n", saw EO

Posted: Tue Mar 24, 2009 2:31 pm
by pxlearn
Try the below unix command to remove the ^M chars from the file in Datastage before job routine and pass the input file as file2

tr -d '\015' < file1 > file2