BookmarkSubscribeRSS Feed
ijmoorejr
Calcite | Level 5

I am trying to write a Proc Report define statement that will allow me to 1) center the column data 2)format the data as "Date" m/d/yyyy when it outputs to Excel 3) create a filter on the column containing the data which would allow column filtering by year, month, day, etc. once in Excel.

 

Please send examples. So far, I am only sure about how to center the data in the column. Thanks.

 

define VAR1 / 'VAR1' center;

1 REPLY 1
Reeza
Super User

You can find most of what you want here and most will work for ODS EXCEL as well, not just TAGSETS.EXCELXP

 

https://support.sas.com/rnd/base/ods/odsmarkup/excelxp_demo.html

 

 

EDIT: Another source, this paper includes references to almost all the functionality you may want. 

 

You can look up the feature and it tells you which paper and page to refer to find the examples.

https://support.sas.com/rnd/papers/intro-multisheet-excel-with-sas/ExcelXPPaperIndex.pdf

 


@ijmoorejr wrote:

I am trying to write a Proc Report define statement that will allow me to 1) center the column data 2)format the data as "Date" m/d/yyyy when it outputs to Excel 3) create a filter on the column containing the data which would allow column filtering by year, month, day, etc. once in Excel.

 

Please send examples. So far, I am only sure about how to center the data in the column. Thanks.

 

define VAR1 / 'VAR1' center;


 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!

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
  • 1 reply
  • 794 views
  • 0 likes
  • 2 in conversation