|
On Mon, Nov 27, 2017 at 3:43 PM, <dlclark@xxxxxxxxxxxxxxxx> wrote:to
For the second step, we have a method in place which allows us
theswitch between "tenants" without having to log out and back in. We
extended this to our stored procedures by passing a "tenant" id as the
first parameter and call QCMDEXC to execute the same switching process
that would be used for an interactive session. What this switching
process does is to replace the current job's library list based on the
initial library list found in a job description that corresponds to
the"tenant" id. We use the QWDRJOBD API to extract the library list from
ajob description and the QLICHGLL API to apply that library list to theDave,
current job.
The only issue that might remain is files left open from the
previous "tenant".
So the RPG program/procedure used as an external stored proc is calling
process to change the library list?
Are you using programs, procedures, or both as external stored procs?
Does your library list change only change the data librar? (So every
tenant runs the same version of programs/procedures?)
Didn't you have an issue with data being returned incorrectly from an
existing ODP that you worked around by moving to dynamic SQL?
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.