Home > Ask the Data Center Experts > z/OS and OS/390 Questions & Answers > Troubleshooting mainframe to Linux FTP
Ask The Data Center Expert: Questions & Answers
EMAIL THIS

Troubleshooting mainframe to Linux FTP

Mark Zelden EXPERT RESPONSE FROM: Mark Zelden

Pose a Question
Other Data Center Categories
Meet all Data Center Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 02 November 2006
We are trying to FTP files from Mainframe to Linux OS. The files look good when FTP'd from Mainframe to Unix. But Mainframe to Linux puts an extra byte at the end of line. Any help is appreciated. Thanks!!!

>
EXPERT RESPONSE
I will try to help, but you didn't say which direction the FTP was going (PUT vs. GET). That is important to know because it could be an FTP server issue or an FTP client issue and I don't know which platform (z/OS or Linux) is the client or server. You also didn't say if this was a binary transfer or ASCII. I am assuming this is an ASCII transfer.

You (or one of your local Unix and Linux admins) should compare all of the FTP server and client default settings between Unix and Linux. However, that still may not provide the answer.

What is in the extra byte? 0x0D? You may be able to use a program on Linux to remove te extra byte. One I have heard of is called "dos2unix". The Unix tr (translate) command can also be used to delete the extra byte. Assuming the extra byte is a carriage return (CR), the command would look like this:

tr -d '\r' ‹input.file ›output.file

Substitute '\r' with 'n' if the extra byte is newline.

Hope this helps.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
z/OS and OS/390
Automating FTP transfers to AIX
Is your z/OS problem a known vulnerability?
FTP help
TCP/IP problem
Performance without high DASD usage
Ethernet-converted printers
Additional communication possibilities besides "dark fiber" and DWDM
Batch FTP
Lost GDG
Working with Telnet

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice

HomeNewsTopicsITKnowledge ExchangeTipsBlogsMultimediaWhite PapersEvents
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2005 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts