@Easybeat wrote:
I do the macro because values for last_of_month in DATES table are dynamic. User enters the time range (BeginDate and EndDate), last_of_months values then generated, then sql and data step codes build new data on each date from last_of_month.
I'm not sure that BY, CLASS and either NWAY options can help in such case. Or please advise me on that. The full code is below in chat.
Yes, it can help in this case. No data was posted.
... View more