Help using Base SAS procedures

XPORT--"variable too long"

Reply
Occasional Contributor
Posts: 14

XPORT--"variable too long"

I'm getting the following error when reading in a dataset for XPORT:

ERROR: The character variable PARAMCD has too long a value for the XPORTOUT library.

I manually checked the incoming dataset, and the length of PARAMCD is $8.  Is there something else that could be triggering this error?

It goes through CPORT just fine, but OpenCDISC will not recognize a .xpt file created by CPORT. Smiley Sad

Thanks!

Suzy

Respected Advisor
Posts: 3,777

Re: XPORT--"variable too long"

Check again.  Run PROC CONTENTS and show the result here.

Occasional Contributor
Posts: 14

Re: XPORT--"variable too long"

data_null_;, you rock!!  That's exactly it.  The length is > 200, and only formatted to $8.

And I love the pic of your dog. Smiley Happy  My daughter has a beagle mix.

Thanks a million!

Suzy

Respected Advisor
Posts: 3,777

Re: XPORT--"variable too long"

Glad you got it figured.

You might be interested in a program to re-size all your character variables.  Here are a couple of choices

https://communities.sas.com/message/163032#163032

Merry Bell (rescued on Christmas day) is, according the the neighbor who called us about the stray dog she saw at her house, is a Red Bone Walker Hound Mix.   Sort of a tall beagle.

Ask a Question
Discussion stats
  • 3 replies
  • 873 views
  • 0 likes
  • 2 in conversation