Copy a Set of Files to a New zOS Partitioned Data Set

Copy a Set of Files to a New zOS Partitioned Data Set

This example copies, in text mode, a set of files from a remote UNIX system to a partitioned data set on z/OS. The data set does not exist on z/OS; UDM is instructed to create it.

The data set is dynamically allocated based on the local UDM dynamic allocation attributes. UDM provides default attributes that can be changed to meet local requirements. The UDM defaults as they are delivered create a sequential, variable block record data set with a logical record length of 1024.

This example changes the data set organization from sequential (PS) to partitioned (PO) and adjusts the data set's space allocation to space units of cylinders, primary space to 1, secondary space to 2, and directory blocks to 10.

DSN File System

//S1 EXEC UDMPRC
//UNVSCR DD *
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 dsorg=po spaceunit=cyl primspace=1 secspace=2 +
6          dirblocks=10 truncext=yes
7  copy  unix=*.txt local='app.data.pds'
8  quit  /*

Note

Line 5 is continued onto line 6 with the line continuation character (+).

Components

Universal Data Mover Manager for z/OS