Copy from Local IBM i to Remote Windows via UCMD Manager

Copy from Local IBM i to Remote Windows via Universal Command Manager for IBM i

The following figures illustrate copying a file from a local IBM i system to a remote Windows system.


STRUCM CMD('ucopy > remotefile') HOST(dallas)
       USERID(joe) PWD(password) SINFILE(localfile)

The UCOPY utility running on the remote Windows system receives its standard in file from STRUCM via the Windows agent. The standard in of STRUCM is read from localfile, as specified by SINFILE.

The file is copied via UCMD as a text file, since the default transfer mode is text.


STRUCM CMD('ucopy -output c:\ntoutput.file') HOST(nthost) USERID(joe) PWD(akkSdiq) SINFILE(library/inputfile) SINMBR(member)

The ucopy command receives its stdin file from STRUCM. The stdin of STRUCM is redirected from SINFILE and, optionally, SINMBR to stdout of ucopy, via the Windows agent.
UCOPY stdout is redirected to c:\ntoutput.file using the UCOPY output parameter.

The file is copied via UCMD as a text file, since the default transfer mode for standard files is text.


The command ucopy is installed as part of UCMD Server on the remote system.

Command Line Options

The command line options used are:

Option

Description

CMD

Remote command ucopy > file to execute. The ucopy program copies its stdin to its stdout.

HOST

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

USERID

Remote user ID with which to execute the command.

PWD

Password for the user ID.

SINFILE [SINMBR]

Location from which the stdin file data is written.

Components

Universal Command Manager for IBM i

Universal Command Server for Windows

Universal Copy