Pete

That's been a great technique for a long time, as you say. Command was probably STRQMQRY - at least it is now.

You don't need Query/400 or Query for IBM i if you have the 57xx-ST1 licensed product - this includes Query Manager - the STRQM command gets you to an interface where you can create QM queries and forms. The interface can be similar to Query for QM queries (PROMPT mode). This is a bit limited - if you want full SQL capability you want to use SQL mode. But the form interface is the same in either case. There are some very nice options in QM that were just not possible in Query - my favorite is being able to wrap within the width of a column, which I suggested to the OP as a way to make a narrower report.

I've given a presentation on QM now at COMMON and at a couple local user groups - it's always possible to learn more of these venerable functionalities, and I've learned from the groups as well as them learning from me.

Regards
Vern

On 10/2/2011 11:51 AM, Pete Hall wrote:
On Fri, 30 Sep 2011 17:04:45 +0000, ADriver@xxxxxxxxxxxx wrote:
I'm trying to set up some audit reports using QMQRY but I'm having some
trouble with the output. Using a QMQRY with *SYSDFT as the QMFORM it
chops up the output into several spool files, which I don't want. If I
try to define a QMFORM it tells me the number of columns must match the
number of fields selected, which would mean I would have to create a
form for each query. I'm hoping to be able to just create one form and
use it for a bunch of queries. Is there any way to do this so it accepts
any number of fields/columns but leaves the printed output as one spool
file?
Way back, I used to use Query400 (the green screen version) to create the
report output I was looking for. Query400 created a query object, then I
used CRTQMQRY and CRTQMFORM to extract the SQL and form information from
the query object. The resulting source could then be modified as needed,
and the RUNQMQRY command (I think that was it) allowed specifying
parameters too, which was what made it really useful for simple reports.
That was 20 years ago or so, but I'd guess it would still work if you had
Query400 installed. Is that still available?


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.