Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8827583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:24:24+00:00 2026-06-14T07:24:24+00:00

I am exporting an SAS Data Set to an xpt file using the following

  • 0

I am exporting an SAS Data Set to an xpt file using the following code but the variable names are truncated to length 8. Is there anything I can do to keep the full names?

libname target xport 'C:\temp\test.xpt';
proc copy in=work out=target;
 select data;
run;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T07:24:26+00:00Added an answer on June 14, 2026 at 7:24 am

    XPort files have length 8 maximum for variable names – they’re intended to be highly compatible with earlier versions of SAS as well as other software, and in both cases 8 is a safe maximum.

    See http://support.sas.com/documentation/cdl/en/movefile/59598/HTML/default/viewer.htm#a001027644.htm for more details on the limitations of the XPORT feature.

    What are you trying to do with your data? There might be a safer/easier way to get it from SAS to what you want while preserving variable names.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Exporting some data from mysql to a csv file using FasterCSV. I'd like the
I'm exporting a CSV to firefox using the following code: string csv = dataTable.ToCSV();
I am exporting a csv file in to mysql db using load data infile
When exporting a project as a Runnable JAR file using Eclipse, there are three
I am exporting the grid data to the PDF file by using iTextSharp. I
I'm exporting a schema using ldifde but the output file wraps long lines so
I am programmatically exporting data (using PHP 5.2) into a .csv test file. Example
I'm exporting some data, making a file and writing the data to the file...
Summary: exporting pixel data from NSOpenGLView to some file formats gives incorrect colours I
When exporting some data from MS SQL Server using Python, I found out that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.