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

What is ment by record level identifier?

0 Answers  


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,


Job is in MSGW while reading the input file and writing a new record / updating a reacod due to Duplicate data error. What action would you take ( C D I R )...?

4 Answers  


Can anybody tell me the setps to create .csv file in IFS folder on AS/400. I also need to know how I can send this .csv file to PC in xls sheet.....?

2 Answers  


How can we read a particular record from the database file which is not having DDS (Flat File). For example, there are 100 records in the flat file. How can we retrive 15th record in RPG/400 program (Without using CL)

6 Answers   CTS, IBM,






WHAT IS MEANT BY SIGNATURE VAILOTION ERROR

1 Answers   IBM,


what is overlay? how can we pass parameters in cl or rpg programing? how can we get data area value in cl or rpg programming?

2 Answers   IBM, Patni,


Why we cannot call a service program? If I add a PEP can i call the service program?

1 Answers   DELL,


How to create a key field for a logical file inside RPG?

4 Answers   HSBC,


How can you delete a record from a file in RPG without using DELETE oppcode?

2 Answers   UST,


can anybody help me to solve this problem. the program that i m checking display error message saying "Record format for file AJDSPFFD does not match model file and decimal error. how to solve this problem. The AJDSPFFD is snapshot the AJTLOG that is the audit trail list.

0 Answers  


How to read alternative records in a pf by using rpg?

8 Answers   IBM,


Categories