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

What is the purpose of FRCDTA keyword?

3 Answers   IBM,


i want to retrieve record b/w 2 dates in as400

2 Answers   L&T,


We have job which is running as batch. It takes atleast 06 hours to complete tht job. But I wanna do tht job with in 3 hours?

0 Answers  


Can we trigger an rpg program which has user interaction with display file when updating a file using the command ADDPFTRG?

2 Answers  


check existence of one record without using chain or read?

1 Answers   IBM,






which program rpg or cl is efficent to update a transaction onto a database file and why ?

0 Answers   IBM,


When PGMA calls PGMB for the first time PGMB executes the *INZSR. PGMB uses the RETRN operation to return to PGMA. When PGMA call PGMB the second time is the *INZSR executed?

5 Answers   Mphasis,


How to identify the object has compiled with the debug view as *source without using STRDBG?

6 Answers  


Suppose I have 3 jobs a b and c. I want to submit b after successful completion of a and want to submit c after successful completion of b. Without using job scheduler or job queue, how can I do that through cl program?

1 Answers  


how do I play {insert rpg system here}?

0 Answers   IBM,


How can we make use of SETLL operation in CL?

11 Answers  


we are sending data of physical file to screen design and it is showing no record why?

1 Answers   NTT Data,


Categories