×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
This will result in the name of the user used to make the database connection. If you are establishing DB connections for each user using their credentials, this will be okay but if you are using a connection pool of some sort, it will not be what you want. If you are using a connection pool, you'll need to pass in the user name to the stored procedure so it can be written to the database from the parameter.
Try having your program use the Current User instead of the Job User in
PSDS... Off the top of my head, I think the Current User is in positions
358-367.
Brian May
Project Lead
Management Information Systems
Garan, Incorporated
Starkville, Mississippi
"Kevin Bucknum" <Kevin@xxxxxxxxxxxxxxxxxxx>
Sent by: web400-bounces@xxxxxxxxxxxx
10/20/2010 10:12 AM
Please respond to
Web Enabling the AS400 / iSeries <web400@xxxxxxxxxxxx>
To
<web400@xxxxxxxxxxxx>
cc
Subject
[WEB400] RPGLE Stored procedure user.
Not sure if this belongs here or in the RPG400 or SQL lists, but I'll
start it here.
We are migrating our green screen applications to web using PHP. As part
of this I have created several stored procedures that call some utility
programs to avoid having to move too much business logic into the PHP
for the time being. I just ran into my first program where I do actual
updates on files. In most of our files we track the user that created
the record, and retrieve this from positions 254-263 in the program
status data structure. Unfortunately this contains QUSER when called
from my stored procedure. I searched, and haven't really come across
anything that seems relevant. Anyone know of a work around for this?
Here is my stored procedure creation statement if it helps any:
<snip>
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.