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

can anybody explain significance of *loval setll with example code????

3 Answers   HSBC,


how do I preserve and clean the array?

0 Answers   IBM,


Can anybody tell me, does CL/400 handle LEVEL check while running the CL program....? plz share your experience...

4 Answers  


How to read a record from file where there is multiple record occurrence is available?

1 Answers  


how can an indexed file be used as arrival sequence in RPG?

3 Answers   IBM,






wat is the difference between dataarea and data queue?

5 Answers   Airtel, Four soft, Shahi Exports,


what is the use of sflnxtchg?

0 Answers   IBM,


i hav 2 logical files(L1,L2) both r derived from one physical file(P1). how can i use both the logical files in one RPG program? if yes what i have to d.

5 Answers   TCS,


1.Load an runtime array of length 99 from the pf and you want to handle all the possible errors?

0 Answers   HCL,


i want code and what are used key words are ...like wrkmbrpdm screen (q) i have a file with 3 fields empno,empname,empaddr... here you give the empno it displays from that number to remaining empno's how? sub file screen: employee details pos to:empno then enter empno empname empaddr so file have 100 records from 1 to 100 so the above pos you give the 55 empno...it displays the from 55 to remaining... ...... please share this answel

2 Answers   IBM,


how to change the length of the field in a physicalfile?

12 Answers  


What are the values of NUM1 and NUM2 after executing the following code? CLONO1NO2NO3 Factorl÷÷+OpcdeFactor2+÷+ResultLenDHHiLoEq C MOVE *LOVAL NUM1 50 C MOVE *J-fIVAL NtJM2 52

2 Answers   Fiserv, IBM,


Categories