A common way to automatically relabel every month is to use the INTNX function. To illustrate, assume you can calculate the max date as being some day during April 2015. Assume further that this means the "Current month" is March 2015 and the "Previous month" is February 2015. (If the assumptions are incorrect, you can adjust the code pretty easily.) Here is some code that captures the months/years as macro variables. data _null_; * max_date is somehow previously calculated and brought in here; call symputx('current_my', put( intnx('month', max_date, -1), mmddyys10.)); call symputx('prior_my', put( intnx('month', max_date, -2), mmddyys10.)); run; You can then use these macro variables as part of the labels when printing. label current_month = "¤t_my"; You will have the obligation to run the program during the correct month, otherwise you would need to change the code to get the proper column headings. Good luck.
... View more