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



Hello Rob,

here's a little programm we used to display the user who locked a document :

CL


    PGM        PARM(&DOC &FLR)

    DCL        VAR(&FLR) TYPE(*CHAR) LEN(63)
    DCL        VAR(&DOC) TYPE(*CHAR) LEN(12)
    DCL        VAR(&SYSOBJNAM) TYPE(*CHAR) LEN(10)

    RTVDLONAM  DLO(&DOC) FLR(&FLR) SYSOBJNAM(*NONE) +
                 RTNOBJNAM(&SYSOBJNAM)
    MONMSG     MSGID(CPF8A82) EXEC(DO)
    RTVDLONAM  DLO(&DOC) FLR(&FLR) SYSOBJNAM(*NONE) +
                 OBJCLS(*FLR) RTNOBJNAM(&SYSOBJNAM)
    ENDDO

    WRKOBJLCK  OBJ(QDOC/&SYSOBJNAM) OBJTYPE(*DOC)
    MONMSG     MSGID(CPF0939) EXEC(DO)
       WRKOBJLCK  OBJ(QDOC/&SYSOBJNAM) OBJTYPE(*FLR)
       ENDDO

       ENDPGM


CMD



 /*           CRTCMD     CMD(*LIBL/WRKDOCLCK) +                     */
 /*                      PGM(LTURPGM/WRKDOCLCK) +                   */
 /*                      SRCFILE(LTURPGM/QCMDSRC) +                 */
 /*                      SRCMBR(WRKDOCLCK) +                        */
 /*                      TEXT('Display document Locks') +      */
 /*                      MODE( +                                    */
 /*                        *ALL) +                                  */
 /*                      ALLOW( +                                   */
 /*                        *ALL) +                                  */
 /*                      MAXPOS(2)                                  */

              CMD        PROMPT('Display Document Locks')

              PARM       KWD(DOC) TYPE(*CHAR) LEN(12) MIN(1) +
                           ALWUNPRT(*NO) ALWVAR(*NO) EXPR(*YES) +
                           VARY(*NO) CHOICE('Name') +
                           PROMPT('document name')

              PARM       KWD(FLR) +
                         TYPE(*CHAR) +
                         LEN(63) +
                         DFT(*NONE) +
                         SPCVAL( +
                           (*NONE )) +
                         EXPR(*YES) +
                         VARY(*NO) +
                         PROMPT('Folder')


Cheers

Karl






As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.