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;


 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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