Creating Dynamic Queries
May 26, 2004 Bruce Guetzkow
If you’ve ever created a “one time” query, you know it is extremely likely that you will end up running that query on a regular basis. Typically that means manually changing the selection criteria each time it runs. While Query/400 does allow you to dynamically change the selection criteria, it can only be done if the query is executed interactively, which is usually frowned upon for performance reasons. This article outlines a method for creating a query with dynamic selection criteria and still executing the query in batch.
A SOURCE FILE FOR YOUR QUERY
The key to making a query