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 thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2025 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.