BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Macavity
Fluorite | Level 6

Hey Guys,

 

I have a bunch of daily data to be summarised/counted by year with the task 'Summary Tables' in EG. I know how to do that in code, which is like:

 

proc tabulate data=mydata missing;

  class date;

  format date year.;

  tables date, n;

run;

 

But I would really like to achieve this with the built-in task. I've tried almost everywhere I can think of for specifying format for date column with no luck.

 

I must have missed some context memu or options that any of you can point out?

 

Ning

1 ACCEPTED SOLUTION

Accepted Solutions
TomKari
Onyx | Level 15

Here's what works for me...

 

For your data, select Describe | Summary Tables

 

In the Data tab, drag your date field to the Classification variables area.

 

There should be a box on the right where you can change the characteristics of the variable that's selected. Select the "Heading format" box, and put your date format in there.

 

Tom

View solution in original post

4 REPLIES 4
art297
Opal | Level 21

I'm not an EG user, so might be off track, but can't you assign the format using either the table or data properties screens? Some nice step-by-step examples are shown at: chrome-extension://oemmndcbldboiebfnladdacbdfmadadm/http://www2.sas.com/proceedings/sugi31/113-31.pdf

 

Art, CEO, AnalystFinder.com

Macavity
Fluorite | Level 6
That's a useful guide, thank you Art.
TomKari
Onyx | Level 15

Here's what works for me...

 

For your data, select Describe | Summary Tables

 

In the Data tab, drag your date field to the Classification variables area.

 

There should be a box on the right where you can change the characteristics of the variable that's selected. Select the "Heading format" box, and put your date format in there.

 

Tom

Macavity
Fluorite | Level 6
Thank Tom, that's exactly what I'm looking for.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 4 replies
  • 1808 views
  • 2 likes
  • 3 in conversation