On 05 Jun 2013 12:53, Peter Connell wrote:
<<SNIP>> But if the application is to be executed via an Apache
thread then I must either run CHGQRYA immediately before and after
execution or execute it via a request to a corresponding persistent
background job. CHGQRYA before and after would be the simplest
solution assuming that the options definitely revert back afterward.
<<SNIP>>
You may want to investigate the QAQQINI override stored procedure to
embed the option overrides within the application itself:
http://pic.dhe.ibm.com/infocenter/iseries/v7r1m0/topic/rzajq/qryoptf.htm
_i QAQQINI file override support i_
"If you find working with the QAQQINI query options file cumbersome,
consider using the qsys2.override_qaqqini() procedure. Instead of
creating, managing, and using a QAQQINI *FILE object directly, this
procedure can be called to work with a temporary version of the INI
file. It uses user-specified options and values. The support relies upon
the QTEMP library, so any changes affect only the job which calls the
procedure.
...
Example Usage
..."
I can not comment on used that SP, as compared with using the CHGQRYA
to specify a QRYOPTLIB, because I have never used the OVERRIDE_QAQQINI
procedure.
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.