How to determine the creation method of a SAS transport file


A SAS transport file can be created with any of the following:

If the creation method of a transport file is unknown, you can use the following method to determine how the file was created.

Run the following DATA step code:

filename tranfile 'physical_storage_location';
data _null_;
   infile tranfile obs=5;
   input theline $ascii80. ;
   put theline;
run;

Note: Operating system commands, such as the following DOS command, can be used to open the file or the file can be opened in Notepad:

c:> type c:\tranfile.dat | more

When you check your SAS log (or your screen if you are using the DOS command or Notepad), you will see one of the following:

Now that you have determined the method that was used to create the transport file, use a compatible strategy to read the transport file and write it back out to a SAS data set. In the order in which these are discussed, compatible strategies for reading the transport file are: