Desktop productivity for business analysts and programmers

week count and year display

Reply
New Contributor
Posts: 4

week count and year display

i counted the week using the week function but when using week formats to display the week no and year then its giving me 1960w00.

can any one suggest me how to derive the count of week of the year and display it with its year using the Enterprise guide.

Esteemed Advisor
Posts: 6,636

Re: week count and year display

[ Edited ]

The week formats expect SAS date values as input (days from 1960-01-01). Therefore a simple week number will give you a result in the beginning of 1960.

Use the week format directly on your SAS date value.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Ask a Question
Discussion stats
  • 1 reply
  • 81 views
  • 0 likes
  • 2 in conversation