Before you transfer
a transport file to the target computer, verify its file attributes.
This example shows typical output:
Using DIR/FULL to Verify the Attributes of the Transport File
vms> DIR/FULL xptlib.dat
Directory HOSTVAX:[JOE.XPTTEST]
XPTLIB.DAT;1 File ID: (31223,952,0)
Size: 7/8 Owner: [HOSTVAX,JOE]
Created: 25-APR 2008 16:47:31.34
Revised: 25-APR-2008 16:47:31.69 (1)
Expires: Effective: File organization: Sequential
Shelved state: Online
File attributes: Allocation: 8, Extend: 0, Global buffer count: 0
Version limit: 2
Record format: Fixed length 80 byte records 1
Record attributes: None 2
RMS attributes: None
Journaling enabled: None
File protection: System:RWED, Owner:RWED, Group:RE, World:
Access Cntrl List: None
Total of 1 file, 7/8 blocks.
$ dir/size xptlib.dat
Directory HOSTVAX:[JOE.XPTTEST]
XPTLIB.DAT;1 7
Total of 1 file, 7 blocks.
1The RECORD FORMAT attribute indicates a fixed record type and an
80-byte record size. These values are required for a successful file
transfer across the network.
2The RECORD ATTRIBUTES field should contain the value NONE.
CAUTION:
If this
field contains CARRIAGE RETURN CARRIAGE CONTROL, file corruption results.
To prevent corruption
before you transfer the transport file, remove this value from the
RECORD ATTRIBUTES field. An error message alerts you to this condition
after you attempt to transfer the corrupted file.
After you verify the
attributes of a transport file, use FTP to transfer the transport
file to the target computer.
In this example, the
target computer retrieves the transport file from the source computer
because the source computer does not have permission to write to the
operating environment directory of the target computer. A source computer
is unlikely to have permission to write a transport file to a target
computer.
At the target computer,
change the directory to the location to which the transport file will
be copied. The following example shows the FTP commands that are used
to get the transport files.
FTP Dialog for File Transfer
hp> ftp ax7000.vms.sas.com 1
Connected to ax7000.vms.com.
220 ax7000.vms.com MultiNet FTP Server Process V4.0(15) at Thu-Sep 30-99
12:59PM-EDT
Name (ax7000.vms.com:): joe
331 User name (joe) ok. Password, please.
Password:
230 User JOE logged into HOSTVAX:[JOE] at Thu 30-Sep-99 12:59PM-EDT, job
27a34cef.
Remote system type is VMS.
ftp> cd [.xpttest] 2
250 Connected to system-specific file/pathname.
ftp> binary 3
200 Type I ok.
ftp> get xptds.dat xptds.dat 4
200 Port 14.83 at Host 10.26.2.45 accepted.
150 IMAGE retrieve of system-specific file/pathname XPTDS.DAT;1 started.
1360 bytes received in 0.02 seconds (87.59 Kbytes226 Transfer completed.
1360 (8) bytes transferred. 5/s)
ftp> get xptlib.dat xptlib.dat 6
200 Port 14.84 at Host 10.26.2.45 accepted.
150 IMAGE retrieve of system-specific file/pathname XPTLIB.DAT;1 started.
3120 bytes received in 0.04 seconds (85.81 Kbytes226 Transfer completed.
3120 (8) bytes transferred. 7/s)
ftp> quit 8
1From the UNIX target computer, the user invokes FTP to connect to
the OpenVMS source operating environment AX7000.VMS.SAS.COM.
2After a connection is established, at the FTP prompt, user JOE changes
to the subdirectory on the source computer that contains the transport
files.
3The transport file attribute BINARY indicates that the OpenVMS transport
file should be transferred from the source computer in BINARY format.
4The FTP get
command obtains the transport
file named XPTDS.DAT from the source computer. The command then copies
it to a new file that has the same name, XPTDS.DAT, in the current
directory of the target operating environment that runs on the target
computer.
5Messages indicate that the transfer was successful and that the size
of the transport file was 1360 bytes. Compare the sizes of the transport
files at the source computer and the target computer. If the sizes
are identical, then the network successfully transferred the file.
For details about listing file size, see
Verifying the Size of a Transport File.
6The FTP get
command obtains another transport
file named XPTLIB.DAT from the source computer and copies it to a
new file that has the same name, XPTLIB.DAT, in the current directory
of the target operating environment on the target computer.
7Messages indicate that the transfer was successful. Compare the sizes
of the transport files at the source computer and the target operating
environment.
8 The user quits the FTP session.
For complete details
about using the file transfer utility, see your FTP documentation.