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 do I declare a table or array in rpg iv?

0 Answers   IBM,


Anybody can explain the difference between SFLCLR & SFLINZ?

7 Answers  


what is the equivalent keyword for CHAIN opcode ??

7 Answers   TCS,


How to add 2 new fields in a file? How many ways are there in as400?

2 Answers  


How do I read records from Subfile? what is the purpose of READC explain with example?

4 Answers   IBM,






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?

7 Answers  


how do u track msg in cl pgm???

1 Answers   CTS,


In single page subfile,if I select the mutiple options in 1 page and without pressing enter,I press rollup key (pagedown).In such case how I can handle it in rpg becasue in single page we have to handle it in pgm. It would be helpful if any one answer with coding

4 Answers   Infinite Computer Solutions,


how can we can we the data decimal error?how can we open such file in support

1 Answers  


how to check on which PF , the LF is dependant ?

4 Answers   IBM,


Hi,Please give me complete code with this logic. The question is how to read the records from a file with load an array of size with error condition? (The logic is Z-Add 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN9 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO)please give me complete code with explanation?

1 Answers  


suppose if we want to update the data in cl what we will do?

9 Answers  


Categories