The Copy To Import File (CPYTOIMPF) command copies the data from the from-file (typically a database file) to an import file.
You can then move the import file (or file to be exported) to your platform by any method you choose, such as TCP/IP file transfer (text transfer), CA/400 support (file transfer, ODBC), or CPYTOTAP (copy to tape file) command. Your server then handles the data from the import file in one of two ways.
You can also specify a stream file, and the CPYTOIMPF command will copy the data to the stream file.