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.