Optimally, I’d think that you want to mount the file as a remote file on the 400, then use standard record operations to do the job, without involving the program on the Z side.
Linker Systems, Inc.
“Remote file” might best be restated as DDM/DRDA. Add the remote database to the database directory (with WRKRDBDIRE). Perhaps a direct update to the remote database would be easier.