Hi: There is really not enough information from your posted program to really give you constructive help. The usage of the (other variables) GROUP? ORDER? Do you really want the SUM of the date variables? So without ALL the code and some data to test, anyone who might want to help, has to factor in the time to guess about what you did not show, make guesses about the data and guess about what your (other variables) are. And, I see you're doing BY group processing too. Then, they have to make the data AND write the program. It should be fairly easy for you to use SASHELP.PRDSALE or one of the other SASHELP datasets to mock up a sample program that illustrates your issue when it is run. That way, people don't have to guess about the (other variables) or the data. There is a date variable in the SASHELP.PRDSALE dataset. You only need 1 date variable and 1 other numeric variable (you could use quarter) for your COMPUTE block in a sample program. Or you could make a small data set from your real data of just 2 by groups with only a few obs in each by group. cynthia
... View more