how do u find whether a record is locked or not??

Answers were Sorted based on User's Feedback



how do u find whether a record is locked or not??..

Answer / sachin k gupta

Command DSPRCDLCK - Display record lock

Sachin Kr Gupta

Is This Answer Correct ?    11 Yes 2 No

how do u find whether a record is locked or not??..

Answer / samul

in rpg,*PSSr routine will call
u need to handle *status = 01218.
and while reading the record(If file is in update mode)

Klist Chain(N) Record

N: Extender to avoid the record lock whne file is in
update mode

Cheers...

Is This Answer Correct ?    8 Yes 0 No

how do u find whether a record is locked or not??..

Answer / shishir

wrkobjlck : this command is basically used to find weather record of file is lock or not

Is This Answer Correct ?    4 Yes 2 No

how do u find whether a record is locked or not??..

Answer / ravi shankar porwal

One of the way is Use commond - CHKRCDLCK.

Is This Answer Correct ?    2 Yes 7 No

Post New Answer

More RPG400 Interview Questions

Hello, I want to extend a length of field in my Display file(Subfile). Please suggest the possible steps. Thanks

3 Answers  


use of PUTOVR,OVRDTA,KEEP keywords?

2 Answers   HCL,


Hi, Can any body tell me ur experience on this questions? Questions: 1.what is the use of SFLRCDNBR other than subfile page display? 2.Which of the following operation cannot be used in conjuction with a file coded as device type disk?

1 Answers  


How can we receive values from a called procedure in RPG?

1 Answers  


I have a PF(ABC)with no key fields. PF(ABC)have 2 fields (cusno and cusname). Please let me know how can i read the cusno = 1150 directly from PF in CL and RPG program(Without creating the LF and without reading the complete file and then compare 1150)

3 Answers   Opus,






in rpg could u please tell me errors types and meanings like 3030 that ....

1 Answers   EXL, UHG,


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  


how we create binder member for updating service program and where we type this code on command line or in program ? strpgmexp pgmlvl(*current) export symbol (xyz0 endpgmexp. plz explain me this step by step .

2 Answers  


What will happen if we r using seton lr after return or vice versa.

5 Answers  


In RPG program one file using as a PRIMARY file while running program some of the records reading twice any body know why its happening

2 Answers  


Can any one plz explain the concept of INFSR, *PSSR, INFDS AND PSDS, I' confusing about PSDS and *PSSR, Wat is the difference btw them, wat PSDS will do????

1 Answers  


what is batch debug in as400?

3 Answers  


Categories