Copy from Local zOS to Remote IBM i
Copy from Local z/OS to Remote IBM i via Universal Copy
The following figure illustrates the copying of a file from a local z/OS system to a remote IBM i system.
//S1 EXEC UCMDPRC //UNVIN DD DISP=SHR,DSN=hlq.input.file //LOGONDD DD DISP=SHR,DSN=hlq.userid(userid) //SCRIPTDD DD * STRUCP TOFILE(LIBRARY/OUTPUTFILE)TOMBR(MEMBER) CPYMODE(*TEXT) //SYSIN DD * -script SCRIPTDD -encryptedfile LOGONDD -host dallas /*
The JCL procedure UCMDPRC is used to execute the command. The command is sent to a remote system named dallas for execution. The TOFILE option is used with the STRUCP command to direct the standard out to a local data set on the remote server. The CPYMODE option is used to force end-of-line character interpretation.
Additional command line options are read from the encrypted file allocated to DD LOGONDD.
The file is copied as a text file, since the default transfer mode for standard files is text.
SYSIN Options
The SYSIN options used in this example are:
Option | Description |
---|---|
DD from which to read a script file. The script file is sent to the remote system for execution. | |
DD from which to read an encrypted command options file. | |
Directs the command to a computer with a host name of dallas. |
Components
Universal Command Manager for z/OS