BookmarkSubscribeRSS Feed
Grandhi4
Calcite | Level 5

From 'Today' how do i count every 15 days report?

4 REPLIES 4
LinusH
Tourmaline | Level 20

Depends on how your data is structured, how the report will look like, and how the report intends to be generated. Please provide dome more information to get an adequate answer...

Data never sleeps
Grandhi4
Calcite | Level 5

Current system date and +15 days  Ex  (20/08/2012 - 04/09/2012) i want it like this.

shivas
Pyrite | Level 9

Hi,

Use INTNX  function.

Thanks,

Shiva

Tom
Super User Tom
Super User

To get today's date you can use TODAY() function call.  SAS stores days as number of days since 1/1/1960 so to get 15 days into the future just add 15.

start=today();

stop=start + 15 ;

If you are dealing with datetime values or have other more complex date calculations then you should learn to use the INTNX() function.

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
  • 4 replies
  • 1304 views
  • 1 like
  • 4 in conversation