Simon's article is excellent - a couple things to watch out for -


If you are going to print the report, watch for PRTF dimensions. Query for i lets you set page size for. QMQRY uses QPQXPRTF, and I bet you've never changed this one. It happens to be the same in our case, though. But


On Mon, 30 Jan, 2023 at 4:09 PM, Michael Mayer <michael.mayer@xxxxxxxxxxxxx<mailto:michael.mayer@xxxxxxxxxxxxx>> wrote:


To: midrange systems technical discussion

Here's an oldie but a goodie from the master Simon Hutchinson.
This might help a bit.
https://www.rpgpgm.com/2013/07/passing-parms-to-query.html


Respectfully,
Michael Mayer
IBM i on Power System Admin
Cell: 518.641.8906
Office and On Call: 731-676-4318
https://www.ermco-eci.com<http://www.ermco-eci.com><https://www.ermco-eci.com/><www.ermco-eci.com></a>>
IBM i Blog: https://ibmireference.blogspot.com<http://ibmireference.blogspot.com><https://ibmireference.blogspot.com/><http://ibmireference.blogspot.com></a>>


[cid:image001.gif@01D934C5.256AD3E0]

From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx<mailto:midrange-l-bounces@xxxxxxxxxxxxxxxxxx>> On Behalf Of a4g atl
Sent: Monday, January 30, 2023 3:48 PM
To: midrange-l@xxxxxxxxxxxxxxxxxx<mailto:midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: [External] Running a QRYDFN using STRQMQRY to pass the parameters

Caution: This message originated outside your organization from email address midrange-l-bounces@xxxxxxxxxxxxxxxxxx<mailto:midrange-l-bounces@xxxxxxxxxxxxxxxxxx><mailto:midrange-l-bounces@xxxxxxxxxxxxxxxxxx<mailto:midrange-l-bounces@xxxxxxxxxxxxxxxxxx>>. Ensure you were expecting this email before opening links or attachments.

I've read a few places that this can be done, saving one having to convert
a QRYDFN to a QMQRY.
I have tried to find examples on how to do this, but have not had success.
The examples I find show the QRYDFN being run but there are steps missing,
it appears. I need to keep the QRYDFN's as the users create the reports. I
am trying to schedule the queries in the scheduler passing from and to
dates.

Does anyone know how to do this?

TIA, Darryl Freinkel
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L@xxxxxxxxxxxxxxxxxx><mailto:MIDRANGE-L@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L@xxxxxxxxxxxxxxxxxx>>
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l<https<https://lists.midrange.com/mailman/listinfo/midrange-l<https>://lists.midrange.com/mailman/listinfo/midrange-l><http://lists.midrange.com/mailman/listinfo/midrange-l>>
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx><mailto:MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx>>
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l<https<https://archive.midrange.com/midrange-l<https>://archive.midrange.com/midrange-l>.<http://archive.midrange.com/midrange-l>.>

Please contact support@xxxxxxxxxxxxxxxxxxxx<mailto:support@xxxxxxxxxxxxxxxxxxxx><mailto:support@xxxxxxxxxxxxxxxxxxxx<mailto:support@xxxxxxxxxxxxxxxxxxxx>> for any subscription related questions.


The information in this email may be confidential. It is intended only for the person(s) named above. If you are not the intended recipient, please notify the sender and do not review, distribute, or duplicate this email.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.