SDECLK UNLOCK (3614)    REMOTE PROCEDURE (8994)

Name Value
NAME SDECLK UNLOCK
TAG UNLOCK
ROUTINE SDECLK
RETURN VALUE TYPE GLOBAL ARRAY
AVAILABILITY RESTRICTED
INACTIVE ACTIVE
WORD WRAP ON FALSE
DESCRIPTION
This RPC unlocks the request record that was locked using SDECLK LOCK.
INPUT PARAMETER
  • REQ
    PARAMETER TYPE:   LITERAL
    REQUIRED:   YES
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
    Appt Request type - variable pointer pointer
                        to one of these files:
                          SDEC APPT REQUEST    - A|<APPT IEN>     A|123
                          SD WAIT LIST         - E|<WL IEN>       E|123
                          REQUEST/CONSULTATION - C|<CONSULT IEN>  C|123
                          RECALL REMINDERS     - R|^<RECALL IEN>  R|123
    
  • FLG
    PARAMETER TYPE:   LITERAL
    REQUIRED:   NO
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
    Unlock if other job
            0 = (default) only unlock if lock belongs to current user
                          and current $J job
            1 = unlock even if the lock does not belong to current
                user and current $J job
    
RETURN PARAMETER DESCRIPTION
A single entry in the global array indicating the success/failure of
releasing the lock:
   1. CODE    -  1 if successful, or 0^Message if could not get lock
   2. MESSAGE -  Message Text
                 If message text="Not your lock" you can call again and
                 send 1 as the 2nd input to unlock anyway.