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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

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