Is there anyway in RPG/400 to display to "user1" the name of "user2" who currently has the record locked that "user1" is trying to access?
"When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for here you have been, and there you will always long to return."
One thing, suppose the program detects a record lock. Great, now what? Do you exit the program, do you send a message to the user, what are your program actions now?
Thanks,
Frank
Depends totally on the purpose of your program, but we had something a while ago that did a SNDUSRMSG with a reply value of R (retry) or C (cancel) specified. The program then did a loop until the update was successful or until the user replied option C.
PeteJ
(Contract Code-monkey)
It's amazing how many ways there are to skin a cat
(apologies to the veggies)
Going back to the original question posted, is there a way of grabbing the identity of the account that has the record locked and displaying it to a user within a program?
In other words can it be automated rather than relying on somebody typing in a command in the command line?
"When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for here you have been, and there you will always long to return."
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.