IND$FILE - File Transfer

Mocha TN3270 includes support for the IND$FILE protocol with Mainframe OS type TSO/MVS. It can be used to copy text and binary files between the PC and the IBM mainframe.

A warning. The IND$FILE protocol is not documented, and is designed in a very primitive way. It may not always work as expected. If problems press keys F2 or F3 to get out of the file copy state.

Making a file transfer

First make sure the tn3270 screen display a TSO prompt, such as



From menu - tools - file transfer , select how:



Send file from PC to the IBM Mainframe




Either write the full IBM file name to receive in (1) or a dataset (2) to use for a lookup. Lookup could as an example be the user name on the IBM mainframe.
At (3) select the file to send from the PC.
At (4) select if it is a binary or ASCII file. If ASCII is selected, the IBM Mainframe will translate the ASCII characters to EBCDIC.
CRLF can be used to select, if a new line in the ASCII file should be CR or CRLF.

Send file from IBM Mainframe




Either write the IBM file to send in (1) or write a dataset (2) to use for a lookup. Can be the user name on the IBM mainframe.
At (3) select the file to receive the file from the IBM Mainframe. If the file exists, a warning will be given.
At (4) select if it is a binary or ASCII file. If ASCII is selected, the IBM Mainframe will translate the EBCDIC characters to ASCII.
Append can be used to select, if the received file should be appended to an existing file.