BookmarkSubscribeRSS Feed
Quartz | Level 8


I have to convert my sas datasets into Xpt files.

Some of the varaiblenames are greater then 8 like ABCEDFGH.

Can someone explain the way to convert those sas datasets into xpt

Thanks in advance

Tourmaline | Level 20

First explain why do you want to create XPT-files?

There are other ways to migrate data between SAS hosts/versions that doesn't have the 8 char variable name restriction.

Data never sleeps
Quartz | Level 8

For FDA submission,

we need to submit the data XPT format only. Can you help if there is any way we could convert sas files to xpt files for variablename greater then 8..

Jade | Level 19

Are you sure that renaming a few variables is the only problem?  What about LABEL and char variable length. 

Quartz | Level 8

It is not about renaming variable.........XPT files were not able created quoting reason as varaiblename in sas datset is more then 8 characters in length........

Tourmaline | Level 20

Well, you do need to rename variables if they are longer than 8 char. The same goes for format names, label length etc. You need to make your data V6 compliant.

Data never sleeps
Jade | Level 19

Well in order process the existing data with the XPORT engine you are doing to need to create a data set that has the proper V6 names.  You might get it to work by renaming the existing variables but that may not be the only problem.  You should probably spend some time with the SAS documentation concerting the XPORT engine and the restrictions associated with it.

Quartz | Level 8

The problem here is not renaming the variables.....our client has given few variable names(greater then 8 charactesr length). He is very parcticular about having only  those variablenames in final xpt file....he doent want the varaibles to be renamed........any way to do this............

Calcite | Level 5


If you had solved this, can I get code over here?

I also would like to convert my SAS data set to .XPT for FDA, please lemme know.



Opal | Level 21

If you want to transport SAS datasets, containing variable names longer than 8 characters then you should check out the CPORT and CIMPORT procedures. These handle them fine.

Here is a good starting point:



Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg



Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 10 replies
  • 1 like
  • 5 in conversation