Copy a File from UNIX to Microsoft Windows

This Process copies a binary file from a UNIX node to a Microsoft Windows node. A TCP/IP address is specified instead of the IBM® Connect:Direct® node name for the SNODE.

ux2nt   process      snode=111.11.11.111
                     hold=no
                     retain=no
copy1   copy  from  (file=/usr/data/out/invoi01.dat
                     pnode
                     sysopts=":datatype=binary:" )
              to    (file=d:\users\data\in\invoi01.dat
                     snode
                     sysopts="datatype(binary)" )
	pend

The following Process is a variation on the previous example. In this example, the file names are defined as symbolic variables in the COPY statement (&file1 and &file2) and are resolved at the time the Process is submitted.

proc1  process      snode=111.11.11.111
                    &file1="/usr/data/out/invoi01.dat"
                    &file2="d:\users\data\in\invoi01.dat"
copy1  copy  from  (file=&file1
                    pnode
                    sysopts=":datatype=binary:")
             to    (file=&file2
                    sysopts="datatype(binary)"
                    snode)
		pend