Problem Write string to flat file

Chtint

Member
hi all

I've got a little problem
confused.gif
. When i create a flat file (.TXT) on QDLS/toto/ by using the BSFN B0400520 (write string to flat file), if in the text on the AS/400 file i've got an %, then in the flat file, before the %, i've got a special character that skips to a new line

Have you got any idea ?

Thanks
 
I think there is more than one business function that will allow you to write to a flat file. You may want to try using a different business function to see if that fixes your issue.
 
This may or may not be your problem, but remember that the string you are writing is ASCII and the AS400 is EBCDIC. EBCDIC sees a '%' as a line feed character.
Check out this website:
http://www.natural-innovations.com/computing/asciiebcdic.html

We've taken to stripping all unacceptable characters out of strings when writing to the AS400 to avoid confusion. Hope that helps in some way.
 
What´s your release? If it´s 8.11 or higher, you can try to add your application(or ube) on P93081 using a appropriate "Encoding Name"(for OBCDIC).
 
hi all

Thanks for your response

but i don't find an other BSFN wich do the same things

We use 8.11 jdedwards, and the CCSID of the AS400 is 37

Thanks for all
 
Have you looked at B34A1010 - Flat File Operations. It has a number of Flat File functions.
 
Back
Top