Copy from Remote UNIX to Local zOS

Copy from Remote UNIX to Local zOS

Copy from Remote UNIX to Local z/OS via Universal Copy

The following figure illustrates the copying of a file from a remote UNIX system to a local z/OS system.

//S1 EXEC UCMDPRC
//UNVOUT   DD DISP=SHR,DSN=hlq.output.file
//LOGONDD  DD DISP=SHR,DSN=hlq.userid(userid)
//SCRIPTDD DD *
/opt/universal/bin/ucopy -mode text \
/usr/input.file
//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 UNVOUT DD specifies a local data set to use for the standard output of the remote command. The /wiki/spaces/UA73/pages/3779476 option (value text) is used with the ucopy command 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

/wiki/spaces/UA73/pages/3770735

DD from which to read a script file. The script file is sent to the remote system for execution.

/wiki/spaces/UA73/pages/3779010

DD from which to read an encrypted command options file.

/wiki/spaces/UA73/pages/3770747

Directs the command to a computer with a host name of dallas.

Components

/wiki/spaces/UA73/pages/3770655

/wiki/spaces/UA73/pages/3779480