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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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