I have four macros
%LET SVCDTE1_PRIOR = '2001-07-01';
%LET SVCDTE2_PRIOR = '2002-09-30';
%LET SVCDTE1_CURR = '2001-12-01';
%LET SVCDTE2_CURR = '2002-09-30';
I need to find the difference in months between the dates in set 1 & separately the dates in step 2 and make two new and separate macros with the month values out of them ( Example &TIMEFRAME1 &TIMEFRAME2. The answer for the 1st one is 14 & the second is 10. I know I need to use the INTCK function, but having difficulties getting it right.
Thanks in advance.
QueryMan
%LET SVCDTE1_PRIOR = '2001-07-01';
%LET SVCDTE2_PRIOR = '2002-09-30';
%LET SVCDTE1_CURR = '2001-12-01';
%LET SVCDTE2_CURR = '2002-09-30';
I need to find the difference in months between the dates in set 1 & separately the dates in step 2 and make two new and separate macros with the month values out of them ( Example &TIMEFRAME1 &TIMEFRAME2. The answer for the 1st one is 14 & the second is 10. I know I need to use the INTCK function, but having difficulties getting it right.
Thanks in advance.
QueryMan