Kumar,
Which "Write One Line To Flat File" are you using?
- B44H9908
- B34A1010
Confirm - you are on Unicode?
The issue might be similar to an outstanding issue with B0400520:
Please note - the "\r" resolves the similar issue in B0400520
Commented out line is SAR 8293354 (and breaks the Line Break on iSeries)
/* lWrittenByte = jdeFprintfConvert(lpBhvrCom, fOutFile, _J("%ls\n"), szWorkString);*/
lWrittenByte = jdeFprintfConvert(lpBhvrCom, fOutFile, _J("%ls\r\n"), szWorkString);
Base JDE Code in 9.0 for B44H9908 uses the 'updated' formatting:
/* Begin SAR : 8937708 - Used jdeFprintfConvert insted of jdeFprintf */
/* jdeFprintf(fpOutFile, _J("%ls\n"), lpDS->szRecord); */
jdeFprintfConvert(lpBhvrCom,fpOutFile, _J("%ls\n"), lpDS->szRecord);
If using the HomeBuilder function - you might want to replace the line to look like:
jdeFprintfConvert(lpBhvrCom,fpOutFile, _J("%ls\r\n"), lpDS->szRecord);
(note the "\r")
One of the C Experts can always chime in and explain the issue in detail. I just know to make the change as I've come across the same issue at four-plus iSeries Clients in the last two years.
(db)