File transfer
Moving data between the mainframe and other systems.
Also written FTP, data transfer
Why it matters. Reports leave the bank and files come in from outside. Two things go wrong when nobody checks them: the characters and the record layout.
Remember
- The mainframe stores text as EBCDIC. Most other systems use ASCII or UTF-8.
- Text mode converts the characters. Binary mode does not.
- A dataset has records of a set length. Check the layout at both ends.
The usual mistake
Sending a text file in binary mode.
The characters are not converted, so the text shows as strange symbols on the other side.
Use text mode for text. Use binary for raw bytes, such as packed numbers.
On real z/OS
MF/OS has no file transfer command, so there is nothing to type here. On real z/OS, files move with FTP, SFTP, Zowe or the 3270 emulator's transfer, and you choose text or binary mode. For a binary upload you also set the record format and length of the receiving dataset.
Where can I practise File transfer?
Right here, at ZedBank. You take a junior job at a simulated bank and use File transfer in real work, with Zed beside you. There's nothing to install.
Start at ZedBankRelated
- EBCDICThe character encoding mainframes use, where letters and numbers are stored as different byte values than on a laptop.
- DatasetWhat a mainframe calls a file: a named collection of records with a defined structure, rather than a loose stream of bytes.
- Unix System ServicesA full Unix environment built into z/OS, with a shell, directories and files alongside the traditional mainframe world.
- Record formatWhether the records in a dataset are all the same length or vary, and how they are blocked. Written as RECFM.