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

How to find d key field of a pf that doesn’t have source physical file?

2 Answers  


How can you determine the number of characters in a variable?

3 Answers  


3 members in a databasefile .how to read records from all the members?????????

4 Answers   CTS,


steps involved in debugging and types of debugging modes?

1 Answers  


1.Are there any errors in the following statement?If so then list them.DTAARA is a data area having a field EMP # and EMPNO is a field in the file EMPPF.Which has one record. READ EMPPF IF %FOUND(EMPPF) IN DTAARA EVAL EMP#=EMPNO OUT DTAARA ENDIF

5 Answers  






if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.

0 Answers  


how does the rpg element work?

0 Answers   IBM,


How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...

0 Answers  


How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique

0 Answers  


I want to declare the number of elements of an array dynamically in RPGLE ? Is it possible? If yes, then how do I do it ?

2 Answers  


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

4 Answers  


what is a rpg?

0 Answers   IBM,


Categories