BookmarkSubscribeRSS Feed
Elliott
Obsidian | Level 7

I am working on SAS on Linux using SAS EG or Batch, I am generating a report with ODS outputting to an excel sheet and the date in the data set is date9. but when I output using ods with or without a style tag when I filter in excel it only see it as text.

 

This is the line I am using   style(column)  = [tagattr='format:mm/dd/yyyy']

 

In the filter dropdown it just shows each date, not like year then you can expand to month and day.

 

I have searched and tried all suggestions but still am not getting the filter to be for date.

 

Any assistance will be greatly appreciated.

 

Thanks,

Elliott

2 REPLIES 2
Tom
Super User Tom
Super User

Please provide a program that reproduces the issue.  Either provide data in the form of a data step or use one of the SASHELP datasets.

Reeza
Super User
Make sure to apply a SAS format to it as well, ie format=mmddyyd10.;

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 lock in 2025 pricing—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
  • 2 replies
  • 843 views
  • 0 likes
  • 3 in conversation