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 |
Suppose you have 3 members in a database file. How to read records from all the members without using CL (OVRDBF) i.e. Entire process should be handled exclusively in a RPG program?
3 members in databasefile .how to read records from all the members??
I know chain keyword retreive records randomly but how chain keyword exactly works internally????
Anybody know the difference of primary file and full procedural file
How do you do indexing in a physical file?
Can we possible to key with the date field?
Need a sql query: retrive all duplicate records in table
Can we trigger an rpg program which has user interaction with display file when updating a file using the command ADDPFTRG?
there is any limit to display the members in rpg400?
how to retrieve particular field records from a physical file,say i have a physical file called 'employee' in it i have to retrieve the records of a field 'admin' present in pf 'employee' using rpg,but i should not use logical file or openquery file.
Can a run time array be declare like below with no specified number of elements ? Is it possible ? DFLD_ARRAY 7 DIM() INZ(*blanks) What does this mean ? Does this mean that the number of array elements will be dynamically declared during run time ?
when will come session device error?