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
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 |
Answer / vikol
DSPRCDLCK is the command to check the record lock
| Is This Answer Correct ? | 10 Yes | 0 No |
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 |
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 |
How to change the name of physical members Dynamically?
parameters cannot be passed in which one???
we are sending data of physical file to screen design and it is showing no record why?
How can we override a file during runtime in RPG? Without using OVRDBF or calling a CL program
there is any limit to display the members in rpg400?
Why we cannot call a service program? If I add a PEP can i call the service program?
Suppose we add one field in physical file and this physical file is used by several programs.how do we know which program is using that file? What are the impact analysis.
Why Rpg/400 is Famous?
How do you proceed in case your active AS400 session has got disconnected suddenly, how can you get back to your session ? Is it possible??
I have one cl program which calls two rpg programs named a & b. I am loading a run time array in Pgm A and the control comes back to cl pgm. i call pgmb and I want to read the runtime array in pgmb which was loaded in pgma. How it can be acheived. I should not use any intermediate file or dataarea to store the loaded values.
Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?
please help me answer to this question what is the difference between the binding and srvpgm in ilerpg?