Copy a zOS Sequential Data Set to a File

Copy a z/OS Sequential Data Set to a File

These examples copy, in text mode, a sequential data set on z/OS 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. Variable record formats do not normally have trailing spaces, so trimming normally is not required.

DD File System

//S1     EXEC UDMPRC
//APOUT  DD DSN=APP.DATA.DAILY,DISP=SHR
//UNVSCR DD *
1  set  _echo=yes
2  set  _halton=warn
3  open  unix=sol9 user=top098 pwd=p100m
4  filesys  local=dd
5  cd  unix=/opt/app/data
6  mode  type=text trim=yes
7  copy  local=apout unix=data10.txt
8  quit  /*

DSN File System

//S1     EXEC UDMPRC
//UNVSCR DD *
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='app.data.daily' unix=data10.txt
7 quit 
/*

Components

Universal Data Mover Manager for z/OS