Note | The transport format uses ASCII encoding, which is foreign to z/OS operating environments. Because of this incompatibility , you cannot read transport files correctly in a text editor under the z/OS operating environment. |
The following SAS code enables you to read the first few lines of a transport file under the z/OS operating environment.
Note | This program does not translate the file to EBCDIC. It only interprets the first five records in the file and writes them to the SAS log. The transport file remains unchanged. |
//PEEK JOB (,X101),'SMITH,B.',TIME=(,3) /*JOBPARM FETCH //STEP1 EXEC SAS //transport- file DD DSN=USERID.XPT6.FILE,DISP=SHR //SYSIN DD * data _null_; infile tranfile obs=5; input theline $ascii80.; put theline; run; /*
Log output indicates whether the XPORT engine or PROC CPORT created the transport file.
Example Code 8.2 on page 53 shows the first 40 characters of the transport file that the XPORT engine creates.
HEADER RECORD*******LIBRARY HEADER RECORD!!!!!!!00
Example Code 8.3 on page 54 shows the first 40 characters of a transport file that PROC CPORT creates.
**COMPRESSED** **COMPRESSED** **COMPRESSED** **COM
Note | If you set the NOCOMPRESS option in the CPORT procedure, compression is suppressed, which prevents the display of the preceding text in a transport file. |
For technical details about the transport format that is used for a data set, see Technical Support article TS-140, The Record Layout of a SAS Transport Data Set .
You can use ISPF to browse a transport file that has a hexadecimal format. Alternatively, you can use the following SAS code to display the first twenty 80-byte records of a transport file in hexadecimal format:
data _null_; infile ' transport-file '; input; list; put '-------------------'; if _n_ > 20 then stop; run;
Example Code 8.5 on page 54 shows the hexadecimal representation of the first 40 ASCII characters in a transport file that the XPORT engine creates.
484541444552205245434F52442A2A2A2A2A2A2A 4C5920484541444552205245434F524421212121
This hexadecimal representation is equivalent to Example Code 8.2 on page 53.
Example Code 8.6 on page 54 shows the hexadecimal representation of the first 40 ASCII characters in a transport file that PROC CPORT creates.
2A2A434F4D505245535345442A2A202A2A434F4D 50442A2A202A2A434F4D505245535345442A2A20
This hexadecimal representation is equivalent to Example Code 8.3 on page 54.