BookmarkSubscribeRSS Feed
vem
Calcite | Level 5 vem
Calcite | Level 5

Hi all,

I have a coloumn start_date and end_date 2 coloumns on dateformat9.

I need to group them according to the year for 2016,2015,2014 on  end_date

startdate                   end_date

01nov2015                 30nov2015

01apr2014                  31dec2014

01jan2015                   31oct2015

01jan2016                    31dec2016

01dec2014                    20feb2015

 

Any help will be appriciated.

Thanks.

 

 

 

 

1 REPLY 1
Astounding
PROC Star

There are a few interpretations as to what "group them" might mean:

 

  • Add a variable representing the year
  • Produce a report that lists each year separately
  • Sort the observations in order by the year

Can you be a little more specific about what you are trying to accomplish?

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 776 views
  • 0 likes
  • 2 in conversation