Use the
appropriate strategy (PROC COPY or PROC CIMPORT) to restore the transport
file to your source computer. A successful translation of the transport
file to native format on the source computer verifies the integrity
of the transport file to be transferred.
This example shows the
creation of a transport file:
libname xptlib xport 'xptlib.dat';
/* create a transport file for the entire library */
proc copy in=work out=xptlib;
run;
PROC COPY reads the
library from the libref WORK and writes the transport file to the
libref XPTLIB.
This example restores
the transport file that was just created to the source computer:
libname test 'test';
/* restore the transport file at the source computer */
proc copy in=xptlib out=test;
run;
The value for the OUT=
option in the example that creates the transport file becomes the
value for the IN= option in the example that restores the transport
file to the source computer. To protect against overwriting the original
data library that is created in WORK, direct output to the library
TEST. The transport file is read from the libref XPTLIB and restored
to the libref TEST in native format by PROC COPY.
For complete details
about the syntax for these procedures, see the
Base SAS Procedures Guide.
Verify the outcome of
this test by viewing the SAS log at the source computer. If the transport
operation succeeded at the source computer, then you can assume that
the transport file content is correct. If the transport operation
failed, then you can assume that the transport file was not created
correctly. In this case, re-create the transport file and restore
it again at the source computer.