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 / syam

DSPRCDLCK cammand will give locked record details

Is This Answer Correct ?    16 Yes 0 No

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

Answer / madanmohan

If you know the RRN number of the record for which lock is
checked then in that case you can use DSPRCDLCK cmd.

To know the RRN number of specific record, use SQL statement

select RRN(A), A.* from FILE A where condition of the key
value.

Is This Answer Correct ?    10 Yes 0 No

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

Answer / syam

Use command CHKRCDLCK

Is This Answer Correct ?    2 Yes 1 No

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

Answer / khasim vali

WRKLCK USE THIS COMMAND IN RPG

Is This Answer Correct ?    0 Yes 0 No

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

Answer / rajgoaj

Additional information:

Use WRKLCK to see whether the file is locked.

Is This Answer Correct ?    1 Yes 16 No

Post New Answer

More RPG400 Interview Questions

Suppose in CL we reach at end of file and again we have to reach from 1 record

3 Answers   TCS,


How to print output from openquery in as400 ?

1 Answers   Four soft,


What you have to do in the display file when you are using message subfile?

1 Answers  


I have one cl program which calls two rpg programs named a & b. I am loading a run time array in Pgm A and the control comes back to cl pgm. i call pgmb and I want to read the runtime array in pgmb which was loaded in pgma. How it can be acheived. I should not use any intermediate file or dataarea to store the loaded values.

2 Answers  


How can we override a file during runtime in RPG? Without using OVRDBF or calling a CL program

1 Answers   UST,






Setps to create .csv file on IFS folder in AS/400( V4R3)....?

3 Answers   TCS,


Need a sql query: retrive all duplicate records in table

3 Answers  


how do I declare a table or array in rpg iv?

0 Answers   IBM,


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

1 Answers  


How do you find whether a record is locked or not?

2 Answers  


how to retrieve particular field records from a physical file,say i have a physical file called 'employee' in it i have to retrieve the records of a field 'admin' present in pf 'employee' using rpg,but i should not use logical file or openquery file.

3 Answers   iGate, Wipro,


If the last record of a file has been read, and the next operation on that file is a READ operation, what will be the values of the input fields for that file? A. They will be blank and/or zero. B. They will be null. C. They will equal the values of the first record in the file. D. They will equal the values of the last record read.

3 Answers  


Categories