Friday, June 4, 2010, 8:39:08 AM, John wrote:

> Thanks to all for these scripts. I've now got another whine for IBM
> about z/OS UNIX. z/OS UNIX uses "new line" (0x15) as a line ending
> instead of LF (line feed). So, when I use iconv on Linux, the 0x15
> gets translated to 0x85. EBCDIC is becoming a royal PITA for me! The
> z/OS version of pax has a "properly perverted" translate table to
> translate 0x15 to 0x0a and vice versa on its translation.

> --
> John McKown 
> Systems Engineer IV
> IT


John

There are 2 different EBCDIC character line termination conventions.

EBCDIC CR (x0D) + LF (x25).
 I  believe  this originated from BiSync, and was a direct translation
 of  Teletype  ASCII.   This  tended to be associated with traditional
 MVS processing.

 Equivalent to ASCII CR (x0D) + LF (x0A) used by DOS and Windows

EBCDIC NL (x15) Newline
 This was used by VM (perhaps originating from 3715 printer?).
 It was in turn used by the C/C++ compilers on VM/MVS/zOS.

 Equivalent  to  ASCII LF (x0A) convention used by UNIX. It is natural
 and a good thing that Linux followed this convention.

The  ASCII  NEL  (x85)  is  normally  associated  with Unicode (UTF-8)
encoding.   See http://en.wikipedia.org/wiki/Newline.  In a few months
I'm going to be playing with EBCDIC<>ASCII in Unicode, so I'm not sure
of  all  the details on z/OS.  The latest (zOS XL 1.11) C/C++ compiler
does  add  Unicode  support, so those and the LE docs will be my first
stop.

The  iconv function reflects the LE iconv function operation, and I do
agree  that it can be a pain. It associates the output line terminator
based  on  the "to" code page selected. IBM-037 (traditional MVS) gets
you CRLF. IBM-1047 (UNIX System Services) gets you NL.

What  was the command line that you used which resulted in NEL instead
of NL when converting to ASCII?
Al

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to