Hi All,
I am trying to attach a .txt & .html (in 2 different e-mail notification activity). The files look in good format (like below) when i ftp'd & opened with notepad.
Process Date : 20120308
Total Adds : 0
Total Changes : 0
Total Deletes : 0
Total Suspects : 6880
But when the email notification attach this file, it is converted to a single line as below, (this report is generated through LINUX scripting)
Process Date : 20120308 Total Adds : 0 Total Changes : 0 Total Deletes : 0 Total Suspects : 6880
Any thoughts will be helpful.
Thanks in advance
Freddie
E-mail Notification (Attaching a .txt/html file)
Moderators: chulett, rschirm, roy
When you are FTP'ing, you are likely transferring in ASCII mode which converts the UNIX newline to the Windows newline which is why that looks fine.
Craig's suggestion is to generate the file with a CRLF rather than just a LF. In DataStage terms this is a case of using the end of record terminator string set to DOS terminator string in your target sequential stage.
Craig's suggestion is to generate the file with a CRLF rather than just a LF. In DataStage terms this is a case of using the end of record terminator string set to DOS terminator string in your target sequential stage.