what is meant by record lock.how records are locked.what is
the purpose of record lock.if records are locked what
happens.how to find out which record is locked.

Answers were Sorted based on User's Feedback



what is meant by record lock.how records are locked.what is the purpose of record lock.if records ..

Answer / harshad r suryawaunshi

Record lock in simple terms means that it is in the use. To
find out which record is locked you can see WRKOBJLCK -> #5
(work with job)-> 14 (opne Files)->F11(I/O details)->
relatinve record numbner of the file. There are various way
to find out the record in use but finally it comes to
option 14 and from there onwwards same steps are followed.

Is This Answer Correct ?    14 Yes 0 No

what is meant by record lock.how records are locked.what is the purpose of record lock.if records ..

Answer / vikol

DSPRCDLCK is the command to check the record lock

Is This Answer Correct ?    10 Yes 0 No

what is meant by record lock.how records are locked.what is the purpose of record lock.if records ..

Answer / nd

Refer to the following command for lock processing.
Also check the ILE condition handlers and APIs for record
lock processing.

Allocate Object
ALCOBJ
Check Record Locks
CHKRCDLCK
Deallocate Object
DLCOBJ
Display Optical Locks
DSPOPTLCK
Display Record Locks
DSPRCDLCK


Release File System Locks
RLSIFSLCK
Work with Object Locks
WRKOBJLCK

Is This Answer Correct ?    0 Yes 0 No

what is meant by record lock.how records are locked.what is the purpose of record lock.if records ..

Answer / hariharasudhan

DSPRCDLCK is only to see the locks in the PF's. WRKRCDLCK is for all types of Files.

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More RPG400 Interview Questions

how to find whether a date format is valid or not in RPG400 not in RPGILE.Can you please write the coding for this sir,i'm new to AS400.Please help.

2 Answers   iGate,


Assume my file has 100 records and I want to see only first 10 records. Is this possible through lf?

1 Answers  


please help me answer to this question what is the difference between the binding and srvpgm in ilerpg?

4 Answers   HCL,


We have job which is running as batch. It takes atleast 06 hours to complete tht job. But I wanna do tht job with in 3 hours?

0 Answers  


ESCAPE message sent by child program can be handled by parent program using which keyword?

2 Answers  






In how many ways a session/device error occurs,,, and what is the remedy for it?

3 Answers  


1) How to define keyed file in CL pgm. 2) How can i read particular records in CL pgm from database file.

2 Answers  


suppose one file is used by 100 user and file is locked by 100 user, what are the impact analysis?

1 Answers  


What would be the effect on the field where reverse image, underline and high intensity?

7 Answers   IBM,


1.I have a Batch job, Running for 4 hours, i want to reduce the executing time to 2 hours what should you do?

5 Answers   Cap Gemini,


where we give the MSGSFL in rpg400?

4 Answers  


i want to perform uniqness on db file bt my db file nt hving key by useing rpgle.

3 Answers   HSBC,


Categories