Usage Note 22719: Do you have any examples of reading/unpacking a transport file on UNIX made by PROC CPORT containing catalogs or a combination of catalogs and data sets from either a noncompatible UNIX operating system or another foreign originating operating system?
In the following examples, we are assuming that the transport file
made by the CPORT procedure is the same or lower release than your UNIX release of SAS.
Note:
PROC CIMPORT cannot read or process a transport file made by PROC COPY or a DATA step with the
XPORT engine or PROC COPY with the SASV5XPT engine or PROC XCOPY.
- Example 1:
- In the first example, we are reading the transport file called PORTFILE.DAT as input and writing to the directory referenced by the libref SASIN all the SAS
data sets and catalogs contained in the transport file.
libname sasin '/u/userid/mydir';
proc cimport infile='/u/userid/portfile.dat' library=sasin;
run;
- Example 2:
- In this example, we are reading the same transport file as in Example 1. However, we are using an alternate way of specifying the location of the transport file.
A FILENAME statement assigns a fileref or nickname to the transport file. We use the fileref or nickname on the INFILE= option of PROC CIMPORT.
libname sasin '/u/userid/mydir';
filename intrans '/u/userid/portfile.dat';
proc cimport library=sasin infile=intrans;
run;
Operating System and Release Information
SAS System | Base SAS | OpenVMS Alpha | n/a | |
ABI+ for Intel Architecture | n/a | |
Tru64 UNIX | n/a | |
Linux on Itanium | n/a | |
Linux | n/a | |
64-bit Enabled Solaris | n/a | |
Solaris | n/a | |
HP-UX | n/a | |
HP-UX IPF | n/a | |
64-bit Enabled HP-UX | n/a | |
All | n/a | |
AIX | n/a | |
64-bit Enabled AIX | n/a | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Usage Note |
Priority: | low |
Topic: | Data Management ==> Administration ==> Migration
|
Date Modified: | 2008-01-28 15:17:13 |
Date Created: | 2002-12-16 10:56:50 |