PMS Information Systems
Welcome to PMS Information Systems - IBM i (AS/400) Forum !!!

Get Answers for all your queries on IBM i (AS/400).

WHEN RECORD LOCK RELEASED

View previous topic View next topic Go down

WHEN RECORD LOCK RELEASED

Post  maran on Fri Aug 07, 2009 10:15 pm

Under what situations ( mention all possible situations )the record lock will be released in the RPG program?
avatar
maran
Admin

Posts : 442
Join date : 2009-07-24

View user profile http://pmsinformationsystem.forumotion.net

Back to top Go down

Re: WHEN RECORD LOCK RELEASED

Post  swaminathan on Wed Aug 26, 2009 12:29 pm

we can use UNLCK, OUT(WITHOUT LOCK), OPERATION EXTENDED(N) to release the locks...

swaminathan

Posts : 12
Join date : 2009-07-30

View user profile

Back to top Go down

Re: WHEN RECORD LOCK RELEASED

Post  maran on Tue Sep 08, 2009 5:51 pm

Swaminathan, We can use UNLCK opcode to release a record lock. We can use OUT to release dataarea lock ONLY.

Other possible ways are following;

When we perform Read, Readp, SETLL, SETGT, Chain, EXCPT, UPDAT the previous record lock is released
avatar
maran
Admin

Posts : 442
Join date : 2009-07-24

View user profile http://pmsinformationsystem.forumotion.net

Back to top Go down

Re: WHEN RECORD LOCK RELEASED

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum