BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Kevin_Viel
Obsidian | Level 7

1) Did I miss a way to create V8 transport files like through the XPORT engine or COPY procedure or is the %LOC2XPT (https://support.sas.com/kb/46/944.html) the typical route?

2) If %LOC2XPT is the route, then has SAS created an LSAF version?

 

Thank you,

 

Kevin

1 ACCEPTED SOLUTION

Accepted Solutions
Tom
Super User Tom
Super User

The XPORT engine only support V5 transport files (short names and max of 200 bytes for character strings).

If you want to create transport files that support newer SAS dataset conventions then either use the macros (or write your own code as the file format is published)  or switch to using PROC CPORT to create SAS proprietary format transportable files.

View solution in original post

3 REPLIES 3
RichardDeVen
Barite | Level 11

I believe transport files are version independent and converted to target engine during CIMPORT.

 

 

* one table put out in CPORT format;

filename cpt 'class.xpt'; proc cport data=sashelp.class file=cpt; run; proc cimport infile=cpt data=work; run;
* several tables put out in XPORT format;
data table1 table2 table3; set sashelp.class; run; libname manycpt XPORT 'c:\temp\tables.cpt' ; proc copy inlib=work out=manycpt; select table:; run; proc sql; drop table table1, table2, table3; proc copy inlib=manycpt outlib=work; run;

Note: The XPORT engine can not read CPORT created files. You'll get a message 

 

 

proc sql; 
  drop table class;

libname cpt XPORT 'class.xpt';

proc copy inlib=cpt outlib=work;
run;
--------
ERROR: File is probably a cport file. XPORT engine unable to read file created by proc cport.
       Please use proc cimport to convert this file to native format.

 

 

Kevin_Viel
Obsidian | Level 7

Thanks Richard!  Been quite a while, glad to have heard from you again.

 

-Kevin

Tom
Super User Tom
Super User

The XPORT engine only support V5 transport files (short names and max of 200 bytes for character strings).

If you want to create transport files that support newer SAS dataset conventions then either use the macros (or write your own code as the file format is published)  or switch to using PROC CPORT to create SAS proprietary format transportable files.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 1440 views
  • 3 likes
  • 3 in conversation