Usage Note 22656: How to determine the creation method of a SAS transport file
A transport file can be created with any of the following:
- PROC COPY or a DATA step with the XPORT engine
- PROC XCOPY or PROC COPY with the SASV5XPT engine
- PROC CPORT
If the creation method of a transport file is unknown, you can determine how the file was created using the following method.
Run the following DATA step:
filename tranfile 'physical_storage_location';
data _null_;
infile tranfile obs=5;
input theline $ascii80. ;
put theline;
run;
Note:
The $ASCII. informat was not available in Release 6.04. The following DOS command will be helpful.
c:> type c:\tranfile.dat | more
When you check your SAS Log (or your screen if you are DOS command above), you will see one of two possible displays. If the first line of the display contains LIBRARY HEADER RECORD, the transport file was made by either PROC COPY with the XPORT engine (SAS Release 6.06 and higher), PROC COPY with the SASV5XPT engine (SAS Release 6.04), or PROC XCOPY.
HEADER RECORD*******LIBRARY HEADER RECORD!!!!!!!000000000000000000000000000000
SAS SAS SASLIB 6.08 MVS 23JUN95:10:37:32
23JUN95:10:37:32
HEADER RECORD*******MEMBER HEADER RECORD!!!!!!!000000000000000001600000000140
HEADER RECORD*******DSCRPTR HEADER RECORD!!!!!!!000000000000000000000000000000
NOTE: 5 records were read from the infile TRANFILE.
If you see a **COMPRESSED** line, as shown below, the transport file was created by the CPORT procedure.
**COMPRESSED** **COMPRESSED** **COMPRESSED** **COMPRESSED** **COMPRESSED********
LIB CONTROL MVS::SP4.3.0 SAS6.08::D607WORK::TEMP::VAR COUNT 1::REC COUNT 10::RE
C LEN8::1::SPAN CONTROL -1::120::2::40::NL::120::NAMEI:: :::::::: :::::::::::SPA
N CONTROL 0::8::1::8::NL::8::A:::::SPAN CONTROL 0::8::1::8::NL::8::A ::::SPAN CO
NTROL 0::8::1::8::NL::8::A0::::SPAN CONTROL 0::8::1::8::NL::8::A@::::SPAN CONTRO
NOTE: 5 records were read from the infile TRANFILE.
Operating System and Release Information
*
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.
This note illustrates how to determine the creation method of a SAS transport file if the method is unknown.
| Type: | Usage Note |
| Priority: | low |
| Topic: | Data Management ==> Administration ==> Migration
|
| Date Modified: | 2007-11-26 10:24:40 |
| Date Created: | 2002-12-16 10:56:49 |