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 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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
  • 503 views
  • 0 likes
  • 2 in conversation