In <[email protected]>, on
02/06/2012
at 11:54 AM, Donald Likens <[email protected]> said:
>I have not made it work yet but I am convinced that the best way to
>handle sending files that use LF (unix) new line indicator to a
>system that understands CRLF as the new line indicator is to use a
>special translation table (Translate x'15' to x'25').
ASCII CR and LF are '0D'X and '0A'X; '15'X is NAK. Did you mean
*octal* 15?
In EBCDIC, '0D'X is CR, '15'X is NL and '25'X is LF.
Note that CRLF is two characters, so you need something more than a
translate table to get from LF to CRLF, regardless of the code page.
--
Shmuel (Seymour J.) Metz, SysProg and JOAT
ISO position; see <http://patriot.net/~shmuel/resume/brief.html>
We don't care. We don't have to care, we're Congress.
(S877: The Shut up and Eat Your spam act of 2003)
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN