ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

%status = 1218

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • %status = 1218

    Hello,

    I am using the record status indicator %status to see if the record is in use during an update.

    Is there anyway to decrease the waiting period of a chain(e)?

    Right now the user has to wait a minute before I send a them an message that the record is in use.

    Thanks,

    DAC
    Code:
     *    Check to see if record is locked                   
    C     LO:UP         XLATE     SEMLA         SEMLA        
    C     LO:UP         XLATE     SSHPP         SSHPP        
    C     SrcKey1       chain(E)  BBSPSH                                 the RPG program waits one minute until it goes to the next statement. 
    C                        If        %STATUS = 1218             
    C                        Eval     ERRMSG1= Err(9)            
    c                         Eval      @In60  = *on               
    c                         eval      @In61  = *on               
    c                         eval      @error = *on               
    C                        else

  • #2
    Re: %status = 1218

    Hi dcutaia:

    2 methods to do this that I know of.

    Chgpf waitrcd(10) .................that's number of seconds.
    ovrdbf myfile waitrcd(10)

    Best of Luck
    GLS
    The problem with quotes on the internet is that it is hard to verify their authenticity.....Abraham Lincoln

    Comment


    • #3
      Re: %status = 1218

      If you only need it temporarily I'd not change the physical file but perform an override OVRDBF before opening the file.

      Birgitta

      Comment

      Working...
      X