The lines in z/Linux end with x'0A' and the text is ASCII

The lines in z/OS for the FTP'd file end in x'25' and the text is now EBCDIC
(the file I created by hand on z/OS ends its lines with x'15')


----- Original Message ----
From: "McKown, John" <[EMAIL PROTECTED]>
To: IBM-MAIN@BAMA.UA.EDU
Sent: Friday, February 29, 2008 1:02:07 PM
Subject: Re: FTP'd scripts from Linux won't execute

> -----Original Message-----
> From: IBM Mainframe Discussion List 
> [mailto:[EMAIL PROTECTED] On Behalf Of Warren Taylor
> Sent: Friday, February 29, 2008 1:51 PM
> To: IBM-MAIN@BAMA.UA.EDU
> Subject: FTP'd scripts from Linux won't execute
> 
> 
> Hi folks,
> 
> I have a process that builds scripts on Linux to be run on 
> z/OS Unix. The FTP'd scripts, however, don't run. If I use a 
> line editor (ed) to recreate the script on z/OS, it runs fine. 
> 
> Also, 'ED' sees these FTP'd scripts as having only a single 
> line number...1, followed by one big line, instead of the 
> many actual lines. The file I created on z/OS Unix looks fine.
> 
> I'm sure I'm missing the line control character somehow but 
> I'm just confused because its z/Linux to z/OS Unix, both on 
> the mainframe and I don't know if I should transfer EBCDIC or 
> just leave them as ASCII. Not really sure if what I've got to 
> be honest. And z/OS FTP doesn't care much for the ebcdic parm anyway.
> 
> I've tried translating (-d '\015') and that doesn't work
> 
> can anyone point me at my mistake.
> 
> thanks

What does the output from "od -tx1 <script.file" show? The end of each
line should be a x'15'. Sounds like it is not for some reason. What is
the line ending on the Linux file?

--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology

The information contained in this e-mail message may be privileged
and/or confidential.  It is for intended addressee(s) only.  If you are
not the intended recipient, you are hereby notified that any disclosure,
reproduction, distribution or other use of this communication is
strictly prohibited and could, in certain circumstances, be a criminal
offense.  If you have received this e-mail in error, please notify the
sender by reply and delete this message without copying or disclosing
it. 

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

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