> -----Original Message-----
> From: IBM Mainframe Discussion List 
> [mailto:[email protected]] On Behalf Of Lizette Koehler
> Sent: Monday, October 24, 2011 3:10 PM
> To: [email protected]
> Subject: CRLF in Unix being translated on Mainframe to x'25'
> 
> A programmer I am working with is getting a file from Unix 
> which will be sent to the mainframe.  This will be using FTP.
> 
> The process is we receive the file from the Unix system and 
> it is placed on a Windows 2008 server.
> 
> Then from the Windows 2008 it is going to be FTP'd to the mainframe.
> 
> Is there a way to keep the CRLF command at the end of each 
> line?  And will the mainframe recognize it as a newline?
> 
> What we really want is the UNIX file to be individual (FB 
> Lrecl 946) going into the mainframe.
> 
> It seems the Unix CRLF is x'0A' whereas the mainframe is x'25'
> 
> 
> Thanks for any advice
> 
> Lizette

Oh, forgot to mention. If you're using FTP to copy from UNIX to Windows, then 
be sure to use an ASCII transfer and not a BINARY one. If you use ASCII, the 
ftp from UNIX to Windows will cause the Windows file to have CRLF instead of 
just LF. My original reply was assuming that the UNIX system directly wrote to 
the Windows disk or that Windows was directly reading the UNIX disk (like with 
CIFS or NFS).

--
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