Rob, are you sure about the limitation to a hard-coded library? I believe you can specify each or any of the files on the RUNQRY command, and those will be used in the respective positions of even JOIN types.

At least I hope this works - I've run queries that were part of iDoctor, and they were hard-coded to some library at IBM Rochester - but they ran on any system, over your own resources, as I recall.


On 9/14/2012 12:54 PM, rob@xxxxxxxxx wrote:
If you're burying Query/400 into CL programs you can run into issues like
the original query was against production data. Now you've copied the
library to test. However the Query will hardcode the library. Converting
it to a QMQRY will allow you to fix that.

Or, maybe you like the results of a query and want to know how to do that
in SQL so you can imbed that into rpg or something.

Rob Berendt

This thread ...


Return to Archive home page | Return to MIDRANGE.COM home page