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;
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;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
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.
Ready to level-up your skills? Choose your own adventure.