Primero que nada, debemos estar seguros sobre la ubicación del archivo de origen y del de destino.
Cualquier error en este aspecto terminará anulando toda la operación.
Segundo, para que la operación funcione, desde el menú principal del ispf, seleccionaremos la opción '6 Command' y ENTER.
Ahora si, dentro de este menú (ISPF Command Shell), ALT+N (o vamos al menú FILE del wc3270) y File Transfer.
Y nos pedirá que ingresemos los siguientes datos.
En este caso descargaremos del mainframe a la terminal el miembro hol3 que se encuentra en IBMUSER.CICS.SOURCE, y lo grabaremos como hol3.txt en c:/00/ .
File Transfer
Type 'quit' at any prompt to abort this dialog.
Note: In order to initiate a file transfer, the 3270 cursor must be
positioned on an input field that can accept the IND$FILE command, e.g.,
at the VM/CMS or TSO command prompt.
Continue? (y/n) [y] y
'send' means copy a file from this workstation to the host.
'receive' means copy a file from the host to this workstation.
Direction: (send/receive) [receive] RECEIVE
Name of source file on the host: IBMUSER.CICS.SOURCE(HOL3)
Name of destination file or folder on this workstation: C:/00/HOL3.TXT
Host type: (tso/vm/cics) [tso] TSO
An 'ascii' transfer does automatic translation between EBCDIC on the host and
ASCII on the workstation.
A 'binary' transfer does no data translation.
Transfer mode: (ascii/binary) [ascii] ASCII
For ASCII transfers, carriage return (CR) characters can be handled specially.
'add' means that CRs will be added to each record during the transfer.
'keep' means that no special action is taken with CRs.
CR handling: (add/keep) [add] ADD
For ASCII transfers, wc3270 can either remap the text to ensure as accurate a
translation between the Windows code page and EBCDIC code page 37 as possible,
or it can transfer text as-is and leave all translation to the IND$FILE
program on the host.
'yes' means that text will be translated.
'no' means that text will be transferred as-is.
Re-map character set? (yes/no) [yes] YES
Windows code page for re-mapping: [1252] 1252
If the destination file exists, you can choose to keep it (and abort the
transfer), replace it, or append the source file to it.
Action if destination file exists: (keep/replace/append) [keep] KEEP
DFT buffer size: [16384] 16384
File Transfer Summary:
Source file on Host: IBMUSER.CICS.SOURCE(HOL3)
Destination file on Workstation: C:/00/HOL3.TXT
Host type: TSO
Transfer mode: ASCII, add CRs, remap text, Windows code page 1252
If destination file exists, abort the transfer
DFT buffer size: 16384
Continue? (y/n) [y] yes
Transfer initiated.
Press to resume session.
wc3270>
Para enviar un miembro al mainframe, cambiamos en la segunda pregunta el receive por send, prestando también atención al orden en que pide el archivo de origen y dataset de destino.
¡LISTO!