|
On 5/23/2013 2:15 PM, Anderson, Kurt wrote:
Buck,STRQM creates two objects: a *QMQRY and a *QMFORM. The form holds
I guess I wasn't aware of CRTQMQRY. I am in fact using STRQM (and to run it in a CL - STRQMQRY).
formatting instructions and the query holds the SQL. ish. You can
convert STRQM queries to source-based queries via RTVQMQRY. This will
result in two source files: QQMQRYSRC and QQMFORMSRC. The query part is
easy to understand and edit. The form part can be a challenge. Once
you've retrieved and edited the source you need to CRTQMFORM and CRTQMQRY.
If you mostly change the SQL and rarely change the presentation, this
can work out OK. If you need to change the presentation (more columns,
etc) then you'll probably be best served by copying the SQL into the
STRQM session and using that editor to handle the formatting. After
getting it just so, RTVQMQRY again to get the source back out.
Lot of work for a small change until you get comfortable with QMFORMs.
--buck
-----Original Message-----
From: wdsci-l-bounces@xxxxxxxxxxxx [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Buck Calabro
Sent: Thursday, May 23, 2013 1:13 PM
To: wdsci-l@xxxxxxxxxxxx
Subject: Re: [WDSCI-L] View QMQry Source in RDP
On 5/23/2013 1:28 PM, Kurt wrote:
Is there a way to work with QMQry source in RDP?To be clear, I think you are not talking about editing QQMQRYSRC; the place the source is stored for the CRTQMQRY command; the resulting object executed via STRQMQRY. RDp works fine for this although there is no prompting available.
I would like to update some SQL and I was thinking it'd be nice if I could do it in RDP. I know I can do it in RDP (or wherever) and copy what I want into QMQry, but I'd like to be able to directly modify the QMQry source from RDP.
I think you are talking about STRQM, which doesn't seem to have a source file associated with it. The 'source' seems embedded in the *QMQRY object. Unless STRQM has a secret stash where it keeps the source, I don't think any external editor is going to work with these.
--buck
As an Amazon Associate we earn from qualifying purchases.
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.