HP-UX TN3270 Users Guide, March 1998

Table Of Contents
164 Chapter 5
Transferring Files
Transferring Files from the HP-UX Command Prompt
Sample File Transfer Commands
This section contains sample command lines for file transfer to and from
the different host types. Note the use of the backslash (\) character in all
these examples; it is used as an escape character to prevent
interpretation of parentheses and quotation marks by the HP-UX shell.
MVS/TSO tnsend Command
tnsend filea.txt A: \'id.text.mytext\(filea\)\' ASCII H\(277\) P\( 8859\) CRLF
This command sends the file filea.txt (from the current HP-UX
directory) to the member filea of the MVS/TSO partitioned data set
id.text.mytext, using the 3270 session with a session ID of A. The
host translates the file from ASCII to EBCDIC, using the host code page
277 and the PC (ASCII) code page 8859, and removes line-feed
characters.
VM/CMS tnreceive Command
tnreceive /usr/jim/file2.txt SESS02: mytext script \(crlf ascii t\(03\)
This command receives the VM/CMS file mytext with file type script
(the file mode is not specified, so it is assumed to be A1) and stores it in
the directory /usr/jim as a file named file2.txt; the host translates
the file from EBCDIC to ASCII and adds line-feed characters. The file
transfer uses the display session with long name SESS02. The transfer
will be canceled if the host fails to respond within 90 seconds (three
30-second timeout periods).
CICS tnsend Command
tnsend -h 0x01 FILE3 mytext \(ASCII NOCRLF\) Sales Meeting Report
This command sends the file named FILE3 in the current directory to the
CICS file mytext. The file transfer uses the display session with session
ID 0x01 (this session ID will have been specified on the command line
when starting the TN3270 emulation program). The host translates the
file from ASCII to EBCDIC, but does not remove line-feed characters.
The comment “Sales Meeting Report” is written to the first record of the
host file.
MVS/TSO tnreceive Command to a Japanese Host
tnreceive /usr/jim/filea.txt SESS2: text.mytext.filea \(crlf jiscii so\)