> -----Original Message-----
> From: IBM Mainframe Discussion List 
> [mailto:[email protected]] On Behalf Of Shmuel Metz (Seymour J.)
> Sent: Monday, October 24, 2011 5:20 PM
> To: [email protected]
> Subject: Re: CRLF in Unix being translated on Mainframe to x'25'
> 
> In
> <[email protected]
> arthlink.net>,
> on 10/24/2011
>    at 04:10 PM, Lizette Koehler <[email protected]> said:
> 
> >A programmer I am working with is getting a file from Unix which will
> >be sent to the mainframe.  This will be using FTP.
> 
> What are the original and final character sets?
> 
> >Is there a way to keep the CRLF command at the end of each line?
> 
> Do you mean that the original file has CRLF rather than LF? Also, CRLF
> isn't a command just a CR character followed by an LF character. The
> easiest way is to use binary mode.
> 
> >It seems the Unix CRLF is x'0A' whereas the mainframe is x'25'
> 
> No; the Unix new line indication is LF (X'0A'), the windoze/DOS new
> line indication is CRLF (X'0D0A') and the z/OS new line indication for
> EBCDIC is NEL (X'25'). The LF and NEL represent new line, which is
> logically distinct from CRLF.

I agree, with one correction. The hex code for NEL is x'15', not x'25'. x'25' 
is LF which is __NOT__ what z/OS UNIX files use. use "od -tx1" on a text file 
to verify this:

echo 'x'|od -tx1
0000000000    A7  15
0000000002

> 
> BTW, do local politics allow going directly to z/OS instead of
> therough the W2008 box?
>  
> -- 
>      Shmuel (Seymour J.) Metz, SysProg and JOAT

--
John McKown 
Systems Engineer IV
IT
 
Administrative Services Group

HealthMarkets(r)

9151 Boulevard 26 * N. Richland Hills * TX 76010
(817) 255-3225 phone * 
[email protected] * www.HealthMarkets.com

Confidentiality Notice: This e-mail message may contain confidential or 
proprietary information. If you are not the intended recipient, please contact 
the sender by reply e-mail and destroy all copies of the original message. 
HealthMarkets(r) is the brand name for products underwritten and issued by the 
insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance 
Company(r), Mid-West National Life Insurance Company of TennesseeSM and The 
MEGA Life and Health Insurance Company.SM

 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to