BookmarkSubscribeRSS Feed
Anotherdream
Quartz | Level 8

Hello all. Sorry for the simple question, but I can't for the life of me remember the option, and searching online has been un-helpful this far.

When you export a dataset to Excel from within sas, it will truncate your character values to 1024 (which is the default dbmax_text setting). I know there is a way to increase this setting, however I cannot remember where you specify the option.

If I remember correctly, I believe you use text_size, or something similar within proc export itself, but that does not seem to be working.

If anyone can help, it would be appreciated!

Brandon

2 REPLIES 2
Anotherdream
Quartz | Level 8

Does anyone know if there is a global option I can specify to not truncate character columns at 1024 when exporting to excel?

If so I can also specify that option right before the read in!

Thanks

xxformat_com
Barite | Level 11

dbmax_text= can be used in a libname statement using an excel engine when reading data from an excel file.

 

libname demo excel '.../myexcelfile.xlsx' dbmax_text=3000;

 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

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
  • 2 replies
  • 470 views
  • 0 likes
  • 2 in conversation