×
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.
Oh, you have got to be kidding me! I can't believe I've missed something
that obvious all these years. I can't tell you how many times (and ways) I
have programmed for record locks, all the while missing this.
I apologize that I have no answer for your question, but I do appreciate the
new (to me) technique.
Sorry, and thank you.
TA
"Taylor iSeries" <tayloriseries@xxxxxxxxx> wrote in message
news:mailman.7431.1265741877.2580.rpg400-l@xxxxxxxxxxxxxxx
Hi
In traditional RPG, it was easy to display which user is holding a record.
I SDS
I 91 170 MSGTXT
.
.
.C KEY CHAIN FILE 9990
C *IN90 IFEQ '1'
C MOVEL MSGTXT ERRMSG
C END
Then send MSGTXT to the screen informing the user which job had the record
lock.
How do you retrieve this information using SQL. For example, if the code is,
ExecSqlUPDATELibrary/File SetAgMayor = ' YES', AgMayorlcd = :Today,
In a record lock, SQLSTT = 57033, but how does the program retrieve the name
of the job holding the record lock?
Thank youIf (sqlstt <> '00000'); whereAgid# = :Agid#:
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.