View previous topic :: View next topic
|
Author |
Message |
Manikandesvaran D
New User
Joined: 05 Dec 2013 Posts: 11 Location: india
|
|
|
|
We are facing the error 4407 on our ADSO code when 2 or more users accessing the same record.
The command was :
GET QUEUE ID <<Queue-name>>
KEEP
INTO <<WS-QUEUE-INFORMATION >>
TO <<WS-QUEUE-END >>
FIRST.
I have tried to introduce a delay of 1 sec when the queue was already locked.But still the problem persists.
MOVE 0 TO WS-COUNT
WHILE WS-COUNT < 5 AND ERROR-STATUS EQ '4407'
REPEAT.
MOVE 1 TO WAIT-TIME-DELAY.
ADD 1 TO WS-COUNT.
LINK PROGRAM 'WAIT' USING ( WAIT-RECORD ).
GET QUEUE ID <<Queue-name>>
KEEP
INTO <<WS-QUEUE-INFORMATION >>
TO <<WS-QUEUE-END >>
FIRST
END.
Please help on this.I am new for ADSO system.Please help me how to sort this 4407 errror. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Do NOT introduce a delay. . . Well managed systems will not allow the developers to do this. It long-term causes many more problems than it fixes.
You need to identify which bits of the code is causing the data to be unavailable and change the code so that the data is locked for Only the time it takes to update - not the entire transaction. |
|
Back to top |
|
|
|