03-15-2012 10:00 AM
I would like to write a SAS program to get the current date and determine number of days in the month prior to current month.
Find difference in days, months, and years between. Is it possible using SAS ?
Thanks a lot for help.
03-15-2012 10:10 AM
This looks a very similar question to one I answered earlier today. Check out my reply and the link I included, they should give you some ideas on how to do this.
03-15-2012 10:22 AM
Thanks Keith for the reply.
Am getting the values for difference in days, months, and years in between.
Can you please help me how can we get the no.of days for prior month to the current month.
Thanks a lot in advance for help.
03-15-2012 10:31 AM
Just use the INTNX function as below. This will subtract the 1st of the previous month from the 1st of the current month.
Need further help from the community? Please ask a new question.