|
Hello Kelley,
It is not CGIDEV2 that is causing you trouble, but SQL. SQL will keep a
lock on a file if it thinks it might come in handy for the next request.
Because of this command ALCOBJ has an extra parameter CONFLICT that you
can use to ask SQL to let go of these locks. In the evening job use
'ALCOBJ OBJ((<lib>/<file> *FILE <lock>)) CONFLICT(*RQSRLS)' and you should
be fine.
Joep Beckeringh
Kelley>
Hi all,
I have a fairly simple CGIDEV2 program that reads through a file using
embedded SQL and displays information on the screen. The SQL cursor is
opened and closed in the same routine. The web page is displayed after
the SQL routine is completed.
A job that runs in the evening was not completing because the HTTP
server has a lock on the file. The only way to get rid of the lock is to
shut down the HTTP server. Is this normal? I'm new to CGIDEV2, am I--
missing a setting or command somewhere that prevents this?
Thanks,
Kelley
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
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.