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



I'm sorry, I found the program I was looking for...

First, I executed.

OVRDBF     FILE(myFile) WAITRCD(*IMMED)

Instead of using the Monitor block... I simply used Chain(E).

Then if locked, I popped up a window showing what had the lock.

D SysInfo        SDS
D   SdProgram       *PROC
D  @MSGDTA               91    170


 * Retrieve User and Job that has record locked.
C                   Eval      pos = %scan('job' : @MSGDTA)
C     ' '           CheckR    @MSGDTA       End
C                   Eval      workdata = %subst(@MSGDTA:pos+4:End-pos)
C                   Eval      W2JOB# = %subst(workdata:1:6)
C                   Eval      str = 1
C     '/'           Scan      workdata:str  fnd
C                   If        %found
C                   Eval      str = fnd + 1
C     '/'           Scan      workdata:str  fnd
C                   Eval      end = fnd -1
C                   Eval      len = (End - str) + 1
C                   Eval      W2USER = %subst(workdata:Str:Len)
C                   EndIf
C                   DoW       KeyPressed <> PreviousKey
C                   ExFmt     W2
C                   EndDo
C                   EndSr

Michael Schutte


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

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.