BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Ivan555
Quartz | Level 8

Hello!

 

I am doing export sas data to excel through proc export.

My code looks like:

proc export data=table1
outfile=&path.
label dbms xlsx replace;
putnames=yes;
sheet='Sheet1'
%run

But when I am getting data to excel all columns are randomly autofitted.

Does anybody know, can I add something in the code to get excel column width being having default value(64)?

 

THX!

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User
I don't believe there's a control for that in PROC EXPORT, but you could switch to ODS EXCEL and set the column width there manually. But it's slower and will apply formats.

View solution in original post

2 REPLIES 2
Reeza
Super User
I don't believe there's a control for that in PROC EXPORT, but you could switch to ODS EXCEL and set the column width there manually. But it's slower and will apply formats.
Ivan555
Quartz | Level 8

Understood. Perhaps Ods Excel is the only solution. Thank you 🙂

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 919 views
  • 1 like
  • 2 in conversation