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

3. Given the DOS Specification below and the following information: • Indicator 50 is off • No records have been written to the subfile What will be the result if the EXFMT operation code is performed on the record format CTLR? A R SUBFL A DESCRIP 101 6 1ODSPATR(UL) A DFT(’NOT FOUND’) A R CTLR SFLCTL(SUBFL) A N50 SFLDSP A SFLDSPCTL A SFLINZ A 67 SFIJEND A SFLSIZ(13) A SFLPAG(12) A ACCOUNTNO 100 S 10 a.) Only AccountNo will display b.) SUBFL will be initialized with 13 blank records c.) An I/O exception error will occur d.) The screen will display 12 records with ‘NOT FOUND’

4 Answers   IBM,


There is a excel sheet having details of Old account number and new account number. I need to update these details in my AS400 files. i.e. all the records having old account number should be replaced with new account number. There can be 100 or 200 or 300 PFs...no fix files known. how can we do this?Solution should be performance oriented

3 Answers   Cap Gemini, IBM,


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

4 Answers   CTS,


can i use UPDDTA command in rpg program in which contains a file

1 Answers   TCS,


what is a rpg?

0 Answers   IBM,






suppose there are 100 records and i want to read records between 60-70 how we can read this 10 records in rpg

2 Answers   Polaris,


what is mean by *MAP and *DROP?what commands use these two keywords?why are they used?

4 Answers  


1) How to define keyed file in CL pgm. 2) How can i read particular records in CL pgm from database file.

2 Answers  


how can i retrieve the field name from display file at run time? Devendra Singh Tomar

3 Answers  


RPG/400 faqs?

1 Answers   HSBC,


Need a sql query: retrieve all duplicate records in table?

1 Answers  


how do you use commitment control in rpg?

0 Answers   IBM,


Categories