Reader Feedback and Insights: Dynamic Result Field in Query/400
October 11, 2002 Timothy Prickett Morgan
Hey, Ted:
In the article “Dynamic Result Field in Query/400“, which appeared in Midrange Guru, OS/400 Edition, Bill wrote, “Every month we run a query that reports year-to-date sales. The year-to-date sales field, YTD$, is defined as result field that adds up monthly numeric buckets from a sales detail file. For example, the YTD$ for March will contain the expression Jan+Feb+Mar. However, before we can run this query each month, we have to add the next month to the expression. We would like to avoid having to modify the expression every month. Is there a way to