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

I have the below code running, however there is one field in the Dataset with over 1,000 characters (DetailDescription).

It seems the Proc Export procedure only exports 255 characters.

However, when I use EG to 'Send To' Excel all the characters are exported.
Anyone solved this one yet, as I'd like to use Proc Export as the job stream is automated.

TIA, Jay

 

PROC EXPORT
DATA=MyLib.DescriptionData
DBMS=XLS
LABEL
OUTFILE='/xxxx/xxxxx/SASGrid/OutputExcelData.xls'
REPLACE;
SHEET = 'Exported Data';
Run;

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

Is the EG "send to Excel" creating an XLS or an XLSX file? There are differences.

 

Did you try making the column wider to see if the cells just weren't displaying the whole value?

View solution in original post

2 REPLIES 2
ballardw
Super User

Is the EG "send to Excel" creating an XLS or an XLSX file? There are differences.

 

Did you try making the column wider to see if the cells just weren't displaying the whole value?

JayS
Obsidian | Level 7

Thanks, I changed it all to .xlsx and it works fine. Thanks for the quick response, appreciate it. J

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 784 views
  • 0 likes
  • 2 in conversation