Copy a Set of Files to a New Data Physical File on IBM i

Copy a Set of Files to a New Data Physical File on IBM i

This example copies (in text mode, and using the * wildcard) a set of files from a remote UNIX system to a data physical file on IBM i. The data file does not exist on IBM i; UDM is instructed to create it.

The data set is allocated based on the local UDM allocation attributes. UDM provides default attributes that can be changed to meet local requirements. The UDM defaults, as delivered, create a data physical file with a logical record length of 92 and maximum members of 1.

This example changes the record length to 80 and the maximum members to unlimited (nomax).

LIB File System

1 set _echo=yes _halton=warn
2 open unix=sol9 user=top098 pwd=p100m
3 cd unix=/opt/app/data
4 mode type=text
5 attrib local maxmbrs=nomax rcdlen=80 truncext=yes
6 copy unix=*.txt local=MYLIB/APPDATA
7 quit 

Components

Universal Data Mover Manager for IBM i