Question

  Asked: Jan 24 2008   5:17 AM GMT
  Asked by: Divyasrin86


apply exclusive locks


RPGILE

How to apply exclusive lock with no read on a physical file?

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0



ALCOBJ OBJ((LIB/FILE *FILE *EXCL *FIRST)) ?

As this question is under RPGILE, you could issue this command from the RPG application using APIs such as QCMDEXC, QCAPCMD, etc. This will give you an exclusive lock on the data of the *first member in file FILE of library LIB.

Bruce Vining
http://www.brucevining.com/
  • AddThis Social Bookmark Button

Browse more Questions and Answers on AS/400.

Looking for relevant AS/400 Whitepapers? Visit the Search400.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register