Copy an IBM i Data Physical File to a File

Copy an IBM i Data Physical File to a File

This example copies, in text mode, a Data Physical File on IBM i to a remote UNIX system.

Note

A text transfer, by default, does not trim spaces from the end of a record. If the data set being copied is a fixed record format, each record is padded with spaces so that the record length equals the logical record length of the data set. If you do not want the trailing spaces copied, they must be trimmed.

LIB File System

1 set _echo=yes
2 set _halton=warn
3 open unix=sol9 user=top098 pwd=p100m
4 cd unix=/opt/app/data
5 mode type=text trim=yes
6 copy local=MYLIB/APPDATA(DAILY) unix=data10.txt
7 quit 

Components

Universal Data Mover Manager for IBM i